Add page for creating validator

This commit is contained in:
Adw8 2024-08-07 11:54:35 +05:30
parent 989251dc58
commit 0595d9fdef
2 changed files with 32 additions and 0 deletions

View File

@ -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={<OnboardingSuccess />}
></Route>
<Route
path="/validator"
element={<CreateValidator />}
></Route>
</Route>
<Route path="*" element={<PageNotFound />} />
</Routes>

View File

@ -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 (
<Box
sx={{
display: "flex",
flexDirection: "column",
marginTop: 6,
gap: 1,
}}
>
<Typography variant="h5">Create a validator</Typography>
<Typography variant="body1">Select Laconic account:</Typography>
</Box>
)
}
export default CreateValidator