Add functionality to create a validator #28

Merged
nabarun merged 14 commits from deep-stack/testnet-onboarding-app:ag-validator-ui into main 2024-08-09 10:18:14 +00:00
2 changed files with 32 additions and 0 deletions
Showing only changes of commit 34494ece12 - Show all commits

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