From 34494ece1289681f4b7020bce6608c9de1592765 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Wed, 7 Aug 2024 11:54:35 +0530 Subject: [PATCH] Add page for creating validator --- src/App.tsx | 5 +++++ src/pages/CreateValidator.tsx | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 src/pages/CreateValidator.tsx diff --git a/src/App.tsx b/src/App.tsx index dbc8d51..f4896bb 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -14,6 +14,7 @@ import { WalletConnectProvider } from "./context/WalletConnectContext"; import VerifyEmail from "./pages/VerifyEmail"; import Email from "./pages/Email"; import Thanks from "./pages/Thanks"; +import CreateValidator from "./pages/CreateValidator"; function App() { return ( @@ -40,6 +41,10 @@ function App() { path="/onboarding-success" element={} > + } + > } /> diff --git a/src/pages/CreateValidator.tsx b/src/pages/CreateValidator.tsx new file mode 100644 index 0000000..a2cf718 --- /dev/null +++ b/src/pages/CreateValidator.tsx @@ -0,0 +1,27 @@ +import { Box, MenuItem, Select, Typography } from '@mui/material' +import React from 'react' +import { useWalletConnectContext } from '../context/WalletConnectContext' +import { useNavigate } from 'react-router-dom'; + +const CreateValidator = () => { + const {session} = useWalletConnectContext(); + const navigate = useNavigate(); + if (!session){ + navigate("/connect-wallet") + } + return ( + + Create a validator + Select Laconic account: + + ) +} + +export default CreateValidator