Skip to content

Commit

Permalink
Added a help text on the radiogroup on FeedbackForm
Browse files Browse the repository at this point in the history
  • Loading branch information
chrsrns committed Nov 21, 2023
1 parent 21f1cb0 commit 564123f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export const FeedbackForm = () => {
<Card.Body>
<LoadingOverlay active={isLoading} spinner text="Waiting for update">
<Form onSubmit={handleSubmit}>
<Form.Group as={Col} md="8" >
<Form.Group as={Col} md="8" className="mb-3" >
<Form.Label>Rating</Form.Label>
<div key='inline-radio' className="mb-3">
<div key='inline-radio'>
{availableRating.map((ratingNum) => (
<Form.Check
inline
Expand All @@ -98,6 +98,9 @@ export const FeedbackForm = () => {
)
)}
</div>
<Form.Text id="ratingHelpBlock" muted>
The scale starts from 1 as the lowest, to 5 as the highest.
</Form.Text>
<div className="text-danger">{formErrors.rating}</div>
</Form.Group>
<Form.Group controlId="feedbackText" className="mb-3">
Expand Down

0 comments on commit 564123f

Please sign in to comment.