testnet-onboarding-app/src/App.tsx

26 lines
832 B
TypeScript
Raw Normal View History

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 SignPageLayout from "./layout/SignPageLayout";
function App() {
return (
<Router>
<Routes>
<Route path="/" element={<ConnectWallet />} />
<Route element={<SignPageLayout />} >
<Route path="/sign-with-ethereum" element={<SignWithEthereum />} />
<Route path="/sign-with-cosmos/:ethAddress/:ethSignature" element={<SignWithCosmos />} />
</Route>
<Route path="*" element={<PageNotFound />} />
</Routes>
</Router>
);
}
export default App;