From 70ad4f3c1ebfb3155cf49f846ee1b80ca3452b6f Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Wed, 31 Jul 2024 14:49:38 +0530 Subject: [PATCH] Add wallet disclaimer message --- src/constants.ts | 2 ++ src/pages/ConnectWallet.tsx | 24 +++++++++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 99003b8..1f998ac 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -27,3 +27,5 @@ export const TNC_PARTICIPANT_CONTENT = `Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`; + +export const WALLET_DISCLAIMER_MSG = 'You are connecting to an experimental wallet! It is not secure. Do not use it elsewhere and/or for managing real assets.' diff --git a/src/pages/ConnectWallet.tsx b/src/pages/ConnectWallet.tsx index 776621f..aaa90f9 100644 --- a/src/pages/ConnectWallet.tsx +++ b/src/pages/ConnectWallet.tsx @@ -1,9 +1,10 @@ import React, { useEffect } from "react"; import {useNavigate } from "react-router-dom"; -import { Button, Box, Container } from "@mui/material"; +import { Button, Box, Container, Typography, colors } from "@mui/material"; import { useWalletConnectContext } from "../context/WalletConnectContext"; +import { WALLET_DISCLAIMER_MSG } from "../constants"; const ConnectWallet = () => { const { connect, session } = useWalletConnectContext(); @@ -28,14 +29,31 @@ const ConnectWallet = () => { display="flex" flexDirection="column" alignItems="center" - height="50vh" justifyContent="center" + marginTop={10} + sx={{ + border: 1, + borderColor: 'grey.500', + }} padding={5} + > + + Disclaimer + + + {WALLET_DISCLAIMER_MSG} + + +