Skip to content

Commit

Permalink
fix: fee explainer modal close button (#7611)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xApotheosis authored Aug 23, 2024
1 parent f9596dc commit c418be7
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions src/components/FeeModal/FeeModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
Modal,
ModalBody,
ModalCloseButton,
ModalContent,
ModalOverlay,
Expand Down Expand Up @@ -34,27 +35,29 @@ export const FeeModal = ({
<Modal isOpen={isOpen} onClose={handleClose} size='lg'>
<ModalOverlay />
<ModalContent>
<ModalCloseButton />
<Tabs variant='button'>
<TabList px={6} py={4} borderBottomWidth={1} borderColor='border.base'>
<Tab color='text.subtle'>{translate('foxDiscounts.feeSummary')}</Tab>
<Tab color='text.subtle'>{translate('foxDiscounts.simulateFee')}</Tab>
</TabList>
<TabPanels>
<TabPanel p={0}>
<FeeBreakdown feeModel={feeModel} inputAmountUsd={inputAmountUsd} />
</TabPanel>
<TabPanel px={0} py={0}>
<FeeExplainer
inputAmountUsd={inputAmountUsd}
borderRadius='none'
bg='transparent'
boxShadow='none'
feeModel={feeModel}
/>
</TabPanel>
</TabPanels>
</Tabs>
<ModalCloseButton zIndex='1' />
<ModalBody p={0}>
<Tabs variant='button'>
<TabList px={6} py={4} borderBottomWidth={1} borderColor='border.base'>
<Tab color='text.subtle'>{translate('foxDiscounts.feeSummary')}</Tab>
<Tab color='text.subtle'>{translate('foxDiscounts.simulateFee')}</Tab>
</TabList>
<TabPanels>
<TabPanel p={0}>
<FeeBreakdown feeModel={feeModel} inputAmountUsd={inputAmountUsd} />
</TabPanel>
<TabPanel px={0} py={0}>
<FeeExplainer
inputAmountUsd={inputAmountUsd}
borderRadius='none'
bg='transparent'
boxShadow='none'
feeModel={feeModel}
/>
</TabPanel>
</TabPanels>
</Tabs>
</ModalBody>
</ModalContent>
</Modal>
)
Expand Down

0 comments on commit c418be7

Please sign in to comment.