From aac3aef07d3e85ef3667d450d8a951ee02aca03a Mon Sep 17 00:00:00 2001 From: Thibaut Sardan Date: Thu, 3 Jun 2021 16:39:20 +0200 Subject: [PATCH 1/2] cleanup --- .../Modules/LoginModule/InitialScreen.tsx | 419 +++++++++--------- 1 file changed, 214 insertions(+), 205 deletions(-) diff --git a/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx b/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx index ba02e00139..31f8060c44 100644 --- a/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx +++ b/packages/files-ui/src/Components/Modules/LoginModule/InitialScreen.tsx @@ -202,6 +202,186 @@ const InitialScreen = ({ className }: IInitialScreen) => { setIsConnecting(false) } + const LoginButtons = () => { + return ( + <> +
+ {maintenanceMode && ( + + The system is undergoing maintenance, thank you for being patient. + + )} + + + + + +
+ + + ) + } + + const ConnectWallet = () => { + if (!wallet) { + console.error("No wallet found") + return null + } + + return ( +
+
+ + +
+ Go back +
+
+
+
+ )} + + const WalletConnection = () => { + return ( +
+ Connect Wallet to Files + {status === "awaiting confirmation" && + + You will need to sign a message in your wallet to complete sign in. + } + {status === "logging in" && <> + + Hold on, we are logging you in... + + + } +
+ ) + } + + const WalletSelection = () => { + return ( + <> +
+ + +
+