* Add new page for onboarding success * Display onboarded participant * Initialise registry outside useEffect * Fetch single participant object instead of array
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import React from "react";
|
|
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
|
|
|
import ConnectWallet from "./pages/ConnectWallet";
|
|
import SignWithEthereum from "./pages/SignWithEthereum";
|
|
import SignWithCosmos from "./pages/SignWithCosmos";
|
|
import PageNotFound from "./pages/PageNotFound";
|
|
import OnboardingSuccess from "./pages/OnboardingSuccess";
|
|
import SignPageLayout from "./layout/SignPageLayout";
|
|
import { WalletConnectProvider } from "./context/WalletConnectContext";
|
|
|
|
function App() {
|
|
return (
|
|
<Router>
|
|
<WalletConnectProvider>
|
|
<Routes>
|
|
<Route path="/" element={<ConnectWallet />} />
|
|
<Route element={<SignPageLayout />}>
|
|
<Route path="/sign-with-ethereum" element={<SignWithEthereum />} />
|
|
<Route
|
|
path="/sign-with-cosmos/:cosmosAddress/:ethSignature"
|
|
element={<SignWithCosmos />}
|
|
/>
|
|
<Route
|
|
path="/onboarding-success/:cosmosAddress"
|
|
element={<OnboardingSuccess />}
|
|
></Route>
|
|
</Route>
|
|
<Route path="*" element={<PageNotFound />} />
|
|
</Routes>
|
|
</WalletConnectProvider>
|
|
</Router>
|
|
);
|
|
}
|
|
|
|
export default App;
|