diff --git a/components/BridgeContent/SocketPlugIn/index.tsx b/components/BridgeContent/SocketPlugIn/index.tsx index 139e3b82c..e9bd74060 100644 --- a/components/BridgeContent/SocketPlugIn/index.tsx +++ b/components/BridgeContent/SocketPlugIn/index.tsx @@ -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(); const [sourceNetwork, setSourceNetwork] = useState(); - const theme = useTheme(); - const isMobile = useMediaQuery(theme.breakpoints.down('sm')); + const isMobile = useMediaQuery(breakpoints.down('sm')); const assets = useAssetAddresses(); const [tokens, setTokens] = useState(); @@ -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,