diff --git a/keyserver/src/responders/website-responders.js b/keyserver/src/responders/website-responders.js --- a/keyserver/src/responders/website-responders.js +++ b/keyserver/src/responders/website-responders.js @@ -376,7 +376,7 @@ ; var baseURL = "${baseURL}"; - + `); diff --git a/landing/landing.react.js b/landing/landing.react.js --- a/landing/landing.react.js +++ b/landing/landing.react.js @@ -9,7 +9,6 @@ import Keyservers from './keyservers.react'; import Privacy from './privacy.react'; import QR from './qr.react'; -import SIWE from './siwe.react'; import Support from './support.react'; import Team from './team.react'; import Terms from './terms.react'; @@ -40,8 +39,6 @@ return ; } else if (onTeam) { return ; - } else if (onSIWE) { - return ; } else { return ; } diff --git a/landing/root.js b/landing/root.js --- a/landing/root.js +++ b/landing/root.js @@ -30,13 +30,13 @@ function RootComponent() { return ( - - - - - - - + + + + + + + ); } diff --git a/landing/siwe.react.js b/landing/siwe.react.js --- a/landing/siwe.react.js +++ b/landing/siwe.react.js @@ -1,48 +1,49 @@ -// @flow +// // @flow -import { ConnectButton } from '@rainbow-me/rainbowkit'; -import * as React from 'react'; -import './siwe.css'; -import { SiweMessage } from 'siwe'; -import { useAccount, useSigner } from 'wagmi'; +// import { ConnectButton } from '@rainbow-me/rainbowkit'; +// import * as React from 'react'; +// import './siwe.css'; +// import { SiweMessage } from 'siwe'; +// import { useAccount, useSigner } from 'wagmi'; -function createSiweMessage(address, statement) { - const domain = window.location.host; - const origin = window.location.origin; - const message = new SiweMessage({ - domain, - address, - statement, - uri: origin, - version: '1', - chainId: '1', - }); - return message.prepareMessage(); -} -async function signInWithEthereum(address, signer) { - const message = createSiweMessage(address, 'Sign in to Comm with Ethereum'); - const signedMessage = await signer.signMessage(message); - window.postMessage?.(signedMessage); - return signedMessage; -} +// function createSiweMessage(address, statement) { +// const domain = window.location.host; +// const origin = window.location.origin; +// const message = new SiweMessage({ +// domain, +// address, +// statement, +// uri: origin, +// version: '1', +// chainId: '1', +// }); +// return message.prepareMessage(); +// } -function SIWE(): React.Node { - const { data } = useAccount(); - const { address } = data || {}; - const { data: signer } = useSigner(); - React.useEffect(() => { - if (!address || !signer) { - return; - } - signInWithEthereum(address, signer); - }, [address, signer]); - return ( -
-

SIWE

- -
- ); -} +// async function signInWithEthereum(address, signer) { +// const message = createSiweMessage(address, 'Sign in to Comm with Ethereum'); +// const signedMessage = await signer.signMessage(message); +// window.postMessage?.(signedMessage); +// return signedMessage; +// } -export default SIWE; +// function SIWE(): React.Node { +// const { data } = useAccount(); +// const { address } = data || {}; +// const { data: signer } = useSigner(); +// React.useEffect(() => { +// if (!address || !signer) { +// return; +// } +// signInWithEthereum(address, signer); +// }, [address, signer]); +// return ( +//
+//

SIWE

+// +//
+// ); +// } + +// export default SIWE; diff --git a/native/navigation/root-navigator.react.js b/native/navigation/root-navigator.react.js --- a/native/navigation/root-navigator.react.js +++ b/native/navigation/root-navigator.react.js @@ -38,7 +38,9 @@ SidebarListModalRouteName, type ScreenParamList, type RootParamList, -} from './route-names'; + SIWEModalRouteName, +} from "./route-names"; +import {SIWEModal} from "../account/siwe-modal.react"; enableScreens(); @@ -139,9 +141,15 @@ > + +