48 lines
1.7 KiB
TypeScript
48 lines
1.7 KiB
TypeScript
import React from "react";
|
|
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
|
|
|
import ConnectWallet from "./pages/ConnectWallet";
|
|
import SignWithNitroKey from "./pages/SignWithNitroKey";
|
|
import SignWithCosmos from "./pages/SignWithCosmos";
|
|
import PageNotFound from "./pages/PageNotFound";
|
|
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 { WalletConnectProvider } from "./context/WalletConnectContext";
|
|
import VerifyEmail from "./pages/VerifyEmail";
|
|
import Email from "./pages/Email";
|
|
import Thanks from "./pages/Thanks";
|
|
|
|
import "./App.css";
|
|
|
|
function App() {
|
|
return (
|
|
<Router>
|
|
<Header />
|
|
<WalletConnectProvider>
|
|
<Routes>
|
|
<Route path="/" element={<TermsAndConditions />} />
|
|
<Route path="/verify-email" element={<VerifyEmail />} />
|
|
<Route path="/email" element={<Email />} />
|
|
<Route path="/connect-wallet" element={<ConnectWallet />} />
|
|
<Route path="/thanks" element={<Thanks />} />
|
|
<Route element={<SignPageLayout />}>
|
|
<Route path="/sign-with-nitro-key" element={<SignWithNitroKey />} />
|
|
<Route path="/user-verification" element={<UserVerification />} />
|
|
<Route path="/sign-with-cosmos" element={<SignWithCosmos />} />
|
|
<Route
|
|
path="/onboarding-success"
|
|
element={<OnboardingSuccess />}
|
|
></Route>
|
|
</Route>
|
|
<Route path="*" element={<PageNotFound />} />
|
|
</Routes>
|
|
</WalletConnectProvider>
|
|
</Router>
|
|
);
|
|
}
|
|
|
|
export default App;
|