* Sign using eth * Sign using cosmos key * Add functionality to choose account * Use session.topic * Refactor cosmosSign method * Remove logs * Update UI for sign in with cosmos * Remove success route * Add modal for sign in with ethereum * Pass data in url params * Use material UI dropdown * Add route for redirecting to not found page * Remove alert * Add snackbar * Remove unused package * Use notistack * Add polyfills --------- Co-authored-by: Adw8 <adwait@deepstacksoft.com> Co-authored-by: neeraj <neeraj.rtly@gmail.com>
23 lines
728 B
TypeScript
23 lines
728 B
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";
|
|
|
|
function App() {
|
|
return (
|
|
<Router>
|
|
<Routes>
|
|
<Route path="/" element={<ConnectWallet />} />
|
|
<Route path="/sign-with-ethereum" element={<SignWithEthereum />} />
|
|
<Route path="/sign-with-cosmos/:ethAddress/:cosmosAddress/:ethSignature" element={<SignWithCosmos />} />
|
|
<Route path="*" element={<PageNotFound />} />
|
|
</Routes>
|
|
</Router>
|
|
);
|
|
}
|
|
|
|
export default App;
|