2024-03-19 12:54:15 +00:00
|
|
|
import React from "react";
|
2024-03-22 06:22:53 +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";
|
|
|
|
import SignWithEthereum from "./pages/SignWithEthereum";
|
|
|
|
import SignWithCosmos from "./pages/SignWithCosmos";
|
2024-03-21 07:49:17 +00:00
|
|
|
import PageNotFound from "./pages/PageNotFound";
|
2024-03-22 06:22:53 +00:00
|
|
|
import SignPageLayout from "./layout/SignPageLayout";
|
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>
|
|
|
|
<Routes>
|
|
|
|
<Route path="/" element={<ConnectWallet />} />
|
2024-03-22 06:22:53 +00:00
|
|
|
<Route element={<SignPageLayout />} >
|
|
|
|
<Route path="/sign-with-ethereum" element={<SignWithEthereum />} />
|
|
|
|
<Route path="/sign-with-cosmos/:ethAddress/:cosmosAddress/:ethSignature" element={<SignWithCosmos />} />
|
|
|
|
</Route>
|
2024-03-21 07:49:17 +00:00
|
|
|
<Route path="*" element={<PageNotFound />} />
|
2024-03-20 10:26:43 +00:00
|
|
|
</Routes>
|
|
|
|
</Router>
|
2024-03-19 06:47:12 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|