✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix: feedback modal
AykutSarac1754cc5c9570
diff --git a/src/containers/Modals/CancelPremiumModal/index.tsx b/src/containers/Modals/CancelPremiumModal/index.tsxindex a3e9032a..a6fe36ad 100644--- a/src/containers/Modals/CancelPremiumModal/index.tsx+++ b/src/containers/Modals/CancelPremiumModal/index.tsx@@ -34,7 +34,7 @@ export const CancelPremiumModal: React.FC<ModalProps> = ({ opened, onClose }) =>}toast.success("Cancelled premium plan!");- setTimeout(() => window.location.reload(), 2500);+ onClose();} catch (err) {console.error(err);} finally {diff --git a/src/containers/Modals/ReviewModal/index.tsx b/src/containers/Modals/ReviewModal/index.tsxindex f0797d7b..4e50e5f7 100644--- a/src/containers/Modals/ReviewModal/index.tsx+++ b/src/containers/Modals/ReviewModal/index.tsx@@ -35,7 +35,6 @@ export const ReviewModal: React.FC<ModalProps> = ({ opened, onClose }) => {<Text align="center">How was your experience?</Text><Rating value={stars} onChange={setStars} my="lg" size="xl" mx="auto" /><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}onChange={e => setReview(e.currentTarget.value)}@@ -46,6 +45,10 @@ export const ReviewModal: React.FC<ModalProps> = ({ opened, onClose }) => {<Text align="right" size={12} color="dimmed">500/{review.length}</Text>+ <Text size={12}>+ * Your feedback is kept anonymous. If you wish to be contacted, please provide your email+ address along with your feedback.+ </Text><Button type="submit" mt="lg" fullWidth>Submit</Button>