Part of [Sumsub KYC integration in onboarding app](https://www.notion.so/Sumsub-KYC-integration-in-onboarding-app-607b598c9c1d4d12adc71725e2ab5e7e) - Add terms and conditions in home page and before signing cosmos message - Add `kycId` and `role` field in cosmos message Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Co-authored-by: Shreerang Kale <shreerangkale@gmail.com> Reviewed-on: #2
46 lines
1.5 KiB
TypeScript
46 lines
1.5 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";
|
|
|
|
function App() {
|
|
return (
|
|
<Router>
|
|
<Header />
|
|
<WalletConnectProvider>
|
|
<Routes>
|
|
<Route path="/" element={<TermsAndConditions />} />
|
|
<Route
|
|
path="/user-verification"
|
|
element={<UserVerification />}
|
|
/>
|
|
<Route path="/connect-wallet" element={<ConnectWallet />} />
|
|
<Route element={<SignPageLayout />}>
|
|
<Route path="/sign-with-nitro-key" element={<SignWithNitroKey />} />
|
|
<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;
|