Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Switch to hash router for GH pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jacque006 committed May 29, 2024
1 parent 37fd69c commit c4f8a13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/demos/email-recovery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "0.0.0",
"type": "module",
"homepage": "https://getwax.github.io/wax/",
"scripts": {
"setup": "cp .env.base-sepolia .env",
"dev": "vite",
Expand Down
6 changes: 3 additions & 3 deletions packages/demos/email-recovery/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createContext, useEffect, useState } from "react";
import "./App.css";
import { STEPS } from "./constants";
import { AppContextProvider } from "./context/AppContextProvider";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import { HashRouter, Route, Routes } from "react-router-dom";
import LandingPage from "./pages/landingPage";
import ErrorPage from "./pages/errorPage";
import SafeWalletFlow from "./pages/safeWalletFlow";
Expand Down Expand Up @@ -35,15 +35,15 @@ function App() {
setStep,
}}
>
<BrowserRouter>
<HashRouter>
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/safe-wallet" element={<SafeWalletFlow />} />
<Route path="/burner-wallet" element={<BurnerWalletFlow />} />
<Route path="/wallet-recovery" element={<RecoverWalletFlow />} />
<Route path="*" element={<ErrorPage />} />
</Routes>
</BrowserRouter>
</HashRouter>
</StepsContext.Provider>
</AppContextProvider>
);
Expand Down

0 comments on commit c4f8a13

Please sign in to comment.