diff --git a/src/App.tsx b/src/App.tsx index d794326..d613670 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,10 @@ import React from "react"; -import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; +import { + BrowserRouter as Router, + Routes, + Route, + Navigate, +} from "react-router-dom"; import ConnectWallet from "./pages/ConnectWallet"; import SignWithNitroKey from "./pages/SignWithNitroKey"; @@ -9,7 +14,7 @@ import OnboardingSuccess from "./pages/OnboardingSuccess"; import SignPageLayout from "./layout/SignPageLayout"; import UserVerification from "./pages/UserVerification"; import TermsAndConditions from "./pages/TermsAndConditions"; -import Header from "./components/Header"; +import HeaderPageLayout from "./layout/HeaderPageLayout"; import { WalletConnectProvider } from "./context/WalletConnectContext"; import VerifyEmail from "./pages/VerifyEmail"; import Email from "./pages/Email"; @@ -20,23 +25,36 @@ import "./App.css"; function App() { return ( -
- } /> + } /> + } + /> } /> } /> - } /> - } /> - }> - } /> - } /> - } /> - } - > + + {/* Routes with Header */} + }> + } /> + } /> + + {/* SignPageLayout nested inside HeaderPageLayout */} + }> + } + /> + } /> + } /> + } + /> + + } /> diff --git a/src/layout/HeaderPageLayout.tsx b/src/layout/HeaderPageLayout.tsx new file mode 100644 index 0000000..613f15b --- /dev/null +++ b/src/layout/HeaderPageLayout.tsx @@ -0,0 +1,15 @@ +import React from "react"; +import { Outlet } from "react-router-dom"; + +import Header from "../components/Header"; + +const HeaderPageLayout: React.FC = () => { + return ( + <> +
+ + + ); +}; + +export default HeaderPageLayout; diff --git a/src/pages/TermsAndConditions.tsx b/src/pages/TermsAndConditions.tsx index a0f8112..d52b791 100644 --- a/src/pages/TermsAndConditions.tsx +++ b/src/pages/TermsAndConditions.tsx @@ -1,26 +1,30 @@ -import React from 'react'; -import { useNavigate } from 'react-router-dom'; +import React from "react"; +import { useNavigate } from "react-router-dom"; -import { Container, Button, Box, Paper } from '@mui/material'; +import { Container, Button, Box, Paper } from "@mui/material"; -import TermsAndConditionsBox from '../components/TermsAndConditionsBox'; +import TermsAndConditionsBox from "../components/TermsAndConditionsBox"; const TermsAndConditions = () => { const navigate = useNavigate(); const handleAccept = () => { - navigate('/verify-email'); + navigate("/verify-email"); }; return ( - - - - - + + ); diff --git a/src/pages/VerifyEmail.tsx b/src/pages/VerifyEmail.tsx index 4c8f053..8785542 100644 --- a/src/pages/VerifyEmail.tsx +++ b/src/pages/VerifyEmail.tsx @@ -1,24 +1,80 @@ -import React from 'react' +import React from "react"; +import { LaconicWithTextIcon } from "../components/CustomIcon"; -const VerifyEmail = () => { +const VerifyEmail: React.FC = () => { return ( -
- -
- ) -} +
+
+
+
+ +
+
+

+ LORO Testnet +

+

+ Register to join the Loro Testnet +

+
+ + Read the Docs + +
-export default VerifyEmail +
+
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+ ); +}; + +export default VerifyEmail;