Add page for creating validator

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

View File

@ -11,6 +11,7 @@ import UserVerification from "./pages/UserVerification";
import TermsAndConditions from "./pages/TermsAndConditions";
import Header from "./components/Header";
import { WalletConnectProvider } from "./context/WalletConnectContext";
import CreateValidator from "./pages/CreateValidator";
function App() {
return (
@ -34,6 +35,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