From 5dbde050026f0977978797acba2d56ad0f21f20a Mon Sep 17 00:00:00 2001 From: jordan Date: Sun, 22 Oct 2023 21:21:47 -0700 Subject: [PATCH] add close corner button --- .../ProposalActions/VoteStatus/VoteModal.tsx | 38 ++++++++++++------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/apps/web/src/modules/proposal/components/ProposalActions/VoteStatus/VoteModal.tsx b/apps/web/src/modules/proposal/components/ProposalActions/VoteStatus/VoteModal.tsx index d88e6c6e..ce99e65d 100644 --- a/apps/web/src/modules/proposal/components/ProposalActions/VoteStatus/VoteModal.tsx +++ b/apps/web/src/modules/proposal/components/ProposalActions/VoteStatus/VoteModal.tsx @@ -1,4 +1,4 @@ -import { Atoms, Box, Flex, Stack, Text, theme } from '@zoralabs/zord' +import { Atoms, Box, Button, Flex, Stack, Text, theme } from '@zoralabs/zord' import { Field, Formik, Form as FormikForm } from 'formik' import React, { Fragment } from 'react' import { useSWRConfig } from 'swr' @@ -116,11 +116,7 @@ const VoteModal: React.FC<{ return ( {/* Vote Modal */} - setShowVoteModal(false)} - size={isCastVoteSuccess ? 'small' : 'medium'} - > + {isCastVoteSuccess ? ( ) : ( - - - {votesAvailable === 0 ? 'Submit Vote' : 'Submit Votes'} - - - Proposal: {title} - - + + + + {votesAvailable === 0 ? 'Submit Vote' : 'Submit Votes'} + + + Proposal: {title} + + + + {({ values, submitForm, isSubmitting, setFieldValue }) => (