Skip to content

Commit

Permalink
💄 SocketPlugIn: fix theme in light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sebipap authored and cruzdanilo committed May 9, 2024
1 parent 3f8a386 commit c29d90f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/BridgeContent/SocketPlugIn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ type Props = {

const SocketPlugIn = ({ updateRoutes }: Props) => {
const { chain } = useNetwork();
const { palette } = useTheme();
const { palette, breakpoints } = useTheme();
const { t } = useTranslation();
const provider = useEthersProvider();
const [destinationNetwork, setDestinationNetwork] = useState<Network | undefined>();
const [sourceNetwork, setSourceNetwork] = useState<Network | undefined>();
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down('sm'));
const isMobile = useMediaQuery(breakpoints.down('sm'));
const assets = useAssetAddresses();

const [tokens, setTokens] = useState<Asset[]>();
Expand Down Expand Up @@ -123,7 +122,7 @@ const SocketPlugIn = ({ updateRoutes }: Props) => {
secondaryText: hexToRgb(palette.text.primary),
interactive: hexToRgb(palette.grey[200]),
outline: hexToRgb(palette.text.primary),
accent: hexToRgb(palette.text.primary),
accent: palette.mode === 'dark' ? hexToRgb(palette.text.primary) : hexToRgb(palette.grey[900]),
onInteractive: hexToRgb(palette.text.primary),
onAccent: hexToRgb(palette.components.bg),
width: isMobile ? 348 : 448,
Expand Down

0 comments on commit c29d90f

Please sign in to comment.