From c5350617a9bfc0f69c7ddacd1f4bc7e2352c32d2 Mon Sep 17 00:00:00 2001 From: Manank Patni Date: Thu, 21 Sep 2023 00:23:33 +0530 Subject: [PATCH] Minor fixes mobile view proposal detail page (#670) Signed-off-by: Manank Patni --- .../components/ProposalDetailCard.tsx | 181 +++++++++--------- 1 file changed, 88 insertions(+), 93 deletions(-) diff --git a/src/modules/lite/explorer/components/ProposalDetailCard.tsx b/src/modules/lite/explorer/components/ProposalDetailCard.tsx index 525d22fc..388ffcea 100644 --- a/src/modules/lite/explorer/components/ProposalDetailCard.tsx +++ b/src/modules/lite/explorer/components/ProposalDetailCard.tsx @@ -110,111 +110,106 @@ export const ProposalDetailCard: React.FC<{ poll: Poll | undefined; daoId: strin return ( <> - {poll && poll !== undefined ? ( - - - - - - {poll?.name} - - - - - - - - - Share - - - - - - Copy link - - + + + + + + {poll?.name} + + + + + + + + + Share + + + + + Copy link + + + - - - - - - - - - - - - + + + + + + + + + + + - - - - Start date:{" "} - - - {dayjs(Number(poll?.startTime)).format("lll")} - - - - - End date:{" "} - - - {dayjs(Number(poll?.endTime)).format("lll")} - - - - - - - {poll?.description} - + + + + + Start date:{" "} + + + {dayjs(Number(poll?.startTime)).format("lll")} + + - + + End date:{" "} + + + {dayjs(Number(poll?.endTime)).format("lll")} + + - {poll?.externalLink ? ( - - - - {poll?.externalLink} - - - ) : null} + + + {poll?.description} + - - ) : ( - - Could not load the requested proposal + + {poll?.externalLink ? ( + + + + {poll?.externalLink} + + + ) : null} - )} + + ) ) }