From 0595d9fdefc12a9b929656c44fe02bc4d1504cc6 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 4737a39..1de6dee 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