diff --git a/web/account/siwe.react.js b/web/account/siwe.react.js --- a/web/account/siwe.react.js +++ b/web/account/siwe.react.js @@ -3,14 +3,8 @@ import '@rainbow-me/rainbowkit/dist/index.css'; import olm from '@matrix-org/olm'; -import { - ConnectButton, - darkTheme, - RainbowKitProvider, - useConnectModal, -} from '@rainbow-me/rainbowkit'; +import { ConnectButton, useConnectModal } from '@rainbow-me/rainbowkit'; import invariant from 'invariant'; -import _merge from 'lodash/fp/merge'; import * as React from 'react'; import { FaEthereum } from 'react-icons/fa'; import { useDispatch } from 'react-redux'; @@ -39,7 +33,6 @@ import { setPrimaryIdentityPublicKey } from '../redux/primary-identity-public-key-reducer'; import { useSelector } from '../redux/redux-utils'; import { webLogInExtraInfoSelector } from '../selectors/account-selectors.js'; -import { wagmiChains } from '../utils/wagmi-utils'; import css from './siwe.css'; const getSIWENonceLoadingStatusSelector = createLoadingStatusSelector( @@ -196,23 +189,4 @@ ); } -function SIWEWrapper(): React.Node { - const theme = React.useMemo(() => { - return _merge(darkTheme())({ - radii: { - modal: 0, - modalMobile: 0, - }, - colors: { - modalBackdrop: '#242529', - }, - }); - }, []); - return ( - - - - ); -} - -export default SIWEWrapper; +export default SIWE; diff --git a/web/splash/splash.react.js b/web/splash/splash.react.js --- a/web/splash/splash.react.js +++ b/web/splash/splash.react.js @@ -1,15 +1,36 @@ // @flow +import { darkTheme, RainbowKitProvider } from '@rainbow-me/rainbowkit'; +import _merge from 'lodash/fp/merge'; import * as React from 'react'; import LoginForm from '../account/log-in-form.react'; +import { wagmiChains } from '../utils/wagmi-utils.js'; import css from './splash.css'; function Splash(): React.Node { + const rainbowKitTheme = React.useMemo(() => { + return _merge(darkTheme())({ + radii: { + modal: 0, + modalMobile: 0, + }, + colors: { + modalBackdrop: '#242529', + }, + }); + }, []); + return (
- + + +
);