From 843e362cbd1475ab6b73f540f998dec44d2a636b Mon Sep 17 00:00:00 2001 From: balaharisankar Date: Wed, 7 Aug 2024 13:09:10 +0530 Subject: [PATCH] buttons corrected --- .../Faq/Q&A/AnswersModel/AnswersModel.jsx | 43 ++++++++++++------- .../pages/Admin/Components/Faq/Q&A/QandA.jsx | 40 ++++++++++------- 2 files changed, 53 insertions(+), 30 deletions(-) diff --git a/frontend/src/pages/Admin/Components/Faq/Q&A/AnswersModel/AnswersModel.jsx b/frontend/src/pages/Admin/Components/Faq/Q&A/AnswersModel/AnswersModel.jsx index 4b67cb17..e091b144 100644 --- a/frontend/src/pages/Admin/Components/Faq/Q&A/AnswersModel/AnswersModel.jsx +++ b/frontend/src/pages/Admin/Components/Faq/Q&A/AnswersModel/AnswersModel.jsx @@ -82,21 +82,34 @@ export function AnswersModel(props) {

{ans.answer}

- - {ans.isApproved == true && - } + { + ans.isApproved ? + + : + <> + + + + + }
) diff --git a/frontend/src/pages/Admin/Components/Faq/Q&A/QandA.jsx b/frontend/src/pages/Admin/Components/Faq/Q&A/QandA.jsx index 54a8dff4..0f284505 100644 --- a/frontend/src/pages/Admin/Components/Faq/Q&A/QandA.jsx +++ b/frontend/src/pages/Admin/Components/Faq/Q&A/QandA.jsx @@ -112,22 +112,32 @@ export function QandA() {
- { - qns.isApproved == true && - + qns.isApproved ? + + : + <> + + + }