Skip to content

Commit

Permalink
fix modal text color
Browse files Browse the repository at this point in the history
  • Loading branch information
tienkane committed Oct 14, 2024
1 parent 383bbd4 commit 3e4725c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/SwapForm/AddMEVProtectionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { CONNECTION } from 'components/Web3Provider'
import { Z_INDEXS } from 'constants/styles'
import { useActiveWeb3React } from 'hooks'
import useMixpanel, { MIXPANEL_TYPE } from 'hooks/useMixpanel'
import useTheme from 'hooks/useTheme'
import { useChangeNetwork } from 'hooks/web3/useChangeNetwork'
import { useNotify } from 'state/application/hooks'
import { ExternalLink, MEDIA_WIDTHS } from 'theme'
Expand All @@ -29,6 +30,8 @@ const Wrapper = styled.div`
justify-content: center;
gap: 24px;
width: 100%;
color: ${({ theme }) => theme.subText};
.time-frame-legend {
display: none;
}
Expand All @@ -42,6 +45,7 @@ export default function AddMEVProtectionModal({ isOpen, onClose }: { isOpen: boo
const { mixpanelHandler } = useMixpanel()
const { walletKey } = useActiveWeb3React()
const notify = useNotify()
const theme = useTheme()

const onAdd = useCallback(() => {
if (!walletKey || walletKey !== CONNECTION.METAMASK_RDNS) {
Expand Down Expand Up @@ -80,17 +84,17 @@ export default function AddMEVProtectionModal({ isOpen, onClose }: { isOpen: boo
<Modal
isOpen={isOpen}
width="fit-content"
maxWidth="600px"
maxWidth="500px"
maxHeight="80vh"
onDismiss={onClose}
zindex={Z_INDEXS.POPOVER_CONTAINER + 1}
>
<Wrapper>
<RowBetween align="start">
<Text fontSize={24} fontWeight={500}>
<Text fontSize={24} fontWeight={500} color={theme.text}>
<Trans>Add Custom RPC Endpoint</Trans>
</Text>
<X style={{ cursor: 'pointer' }} onClick={onClose} />
<X color={theme.text} style={{ cursor: 'pointer' }} onClick={onClose} />
</RowBetween>
<Row gap="12px">
<Text fontSize={12} lineHeight="16px">
Expand Down

0 comments on commit 3e4725c

Please sign in to comment.