From a208435dad4a4ab005a05c671501820e5814cbd9 Mon Sep 17 00:00:00 2001 From: Jeff Sieu Date: Mon, 31 Oct 2022 16:38:56 +0800 Subject: [PATCH] [questions][fix] fix contribute dialog close (#476) --- .../questions/ContributeQuestionCard.tsx | 88 ++++++++++--------- .../questions/ContributeQuestionDialog.tsx | 7 +- 2 files changed, 51 insertions(+), 44 deletions(-) diff --git a/apps/portal/src/components/questions/ContributeQuestionCard.tsx b/apps/portal/src/components/questions/ContributeQuestionCard.tsx index ae53a914..f91e1eb4 100644 --- a/apps/portal/src/components/questions/ContributeQuestionCard.tsx +++ b/apps/portal/src/components/questions/ContributeQuestionCard.tsx @@ -30,54 +30,56 @@ export default function ContributeQuestionCard({ }); return ( - - + ); } diff --git a/apps/portal/src/components/questions/ContributeQuestionDialog.tsx b/apps/portal/src/components/questions/ContributeQuestionDialog.tsx index ae08724b..8e481632 100644 --- a/apps/portal/src/components/questions/ContributeQuestionDialog.tsx +++ b/apps/portal/src/components/questions/ContributeQuestionDialog.tsx @@ -35,7 +35,12 @@ export default function ContributeQuestionDialog({ return (
- + { + onCancel(); + }}>