feat: add feedback textarea description

This commit is contained in:
AykutSarac 2023-09-13 13:32:34 +03:00
parent b8ae69f79b
commit 14cebeebe5
No known key found for this signature in database

View File

@ -35,12 +35,13 @@ export const ReviewModal: React.FC<ModalProps> = ({ opened, onClose }) => {
<Text align="center">How was your experience?</Text> <Text align="center">How was your experience?</Text>
<Rating value={stars} onChange={setStars} my="lg" size="xl" mx="auto" /> <Rating value={stars} onChange={setStars} my="lg" size="xl" mx="auto" />
<Textarea <Textarea
description="You may include your mail in the feedback if you want us to contact you."
placeholder="Please provide feedback on how we can enhance the product and let us know which features you require."
value={review} value={review}
onChange={e => setReview(e.currentTarget.value)} onChange={e => setReview(e.currentTarget.value)}
minLength={10} minLength={10}
maxLength={500} maxLength={500}
minRows={5} minRows={5}
placeholder="Please provide feedback on how we can enhance the product and let us know which features you require."
/> />
<Text align="right" size={12} color="dimmed"> <Text align="right" size={12} color="dimmed">
500/{review.length} 500/{review.length}