2024-03-19 12:54:15 +00:00
|
|
|
import React from "react";
|
2024-07-05 09:42:57 +00:00
|
|
|
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
2024-03-19 06:47:12 +00:00
|
|
|
|
2024-03-20 10:26:43 +00:00
|
|
|
import ConnectWallet from "./pages/ConnectWallet";
|
2024-07-16 09:01:47 +00:00
|
|
|
import SignWithNitroKey from "./pages/SignWithNitroKey";
|
2024-03-20 10:26:43 +00:00
|
|
|
import SignWithCosmos from "./pages/SignWithCosmos";
|
2024-03-21 07:49:17 +00:00
|
|
|
import PageNotFound from "./pages/PageNotFound";
|
2024-07-11 04:35:00 +00:00
|
|
|
import OnboardingSuccess from "./pages/OnboardingSuccess";
|
2024-03-22 06:22:53 +00:00
|
|
|
import SignPageLayout from "./layout/SignPageLayout";
|
2024-03-26 07:25:57 +00:00
|
|
|
import { WalletConnectProvider } from "./context/WalletConnectContext";
|
2024-03-19 12:54:15 +00:00
|
|
|
|
2024-03-20 10:26:43 +00:00
|
|
|
function App() {
|
2024-03-19 06:47:12 +00:00
|
|
|
return (
|
2024-03-20 10:26:43 +00:00
|
|
|
<Router>
|
2024-03-26 07:25:57 +00:00
|
|
|
<WalletConnectProvider>
|
|
|
|
<Routes>
|
|
|
|
<Route path="/" element={<ConnectWallet />} />
|
2024-07-05 09:42:57 +00:00
|
|
|
<Route element={<SignPageLayout />}>
|
2024-07-16 09:01:47 +00:00
|
|
|
<Route path="/sign-with-nitro-key" element={<SignWithNitroKey />} />
|
2024-07-05 09:42:57 +00:00
|
|
|
<Route
|
|
|
|
path="/sign-with-cosmos/:cosmosAddress/:ethSignature"
|
|
|
|
element={<SignWithCosmos />}
|
|
|
|
/>
|
2024-07-11 04:35:00 +00:00
|
|
|
<Route
|
|
|
|
path="/onboarding-success/:cosmosAddress"
|
|
|
|
element={<OnboardingSuccess />}
|
|
|
|
></Route>
|
2024-03-26 07:25:57 +00:00
|
|
|
</Route>
|
|
|
|
<Route path="*" element={<PageNotFound />} />
|
|
|
|
</Routes>
|
2024-07-05 09:42:57 +00:00
|
|
|
</WalletConnectProvider>
|
2024-03-20 10:26:43 +00:00
|
|
|
</Router>
|
2024-03-19 06:47:12 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|