Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fee explainer modal close button #7611

Merged
merged 3 commits into from
Aug 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 23 additions & 20 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 @@ -35,26 +36,28 @@ export const FeeModal = ({
<ModalOverlay />
<ModalContent>
<ModalCloseButton />
NeOMakinG marked this conversation as resolved.
Show resolved Hide resolved
<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>
NeOMakinG marked this conversation as resolved.
Show resolved Hide resolved
<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
Loading