Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3492478
D6488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D6488.diff
View Options
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 (
- <RainbowKitProvider chains={wagmiChains} theme={theme} modalSize="compact">
- <SIWE />
- </RainbowKitProvider>
- );
-}
-
-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 (
<div className={css.splashContainer}>
<div className={css.loginContainer}>
- <LoginForm />
+ <RainbowKitProvider
+ chains={wagmiChains}
+ theme={rainbowKitTheme}
+ modalSize="compact"
+ >
+ <LoginForm />
+ </RainbowKitProvider>
</div>
</div>
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 12:09 AM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679253
Default Alt Text
D6488.diff (2 KB)
Attached To
Mode
D6488: [web] Lift `RainbowKitProvider` "above" `LoginForm`
Attached
Detach File
Event Timeline
Log In to Comment