Skip to content

Commit

Permalink
Add base config to router
Browse files Browse the repository at this point in the history
  • Loading branch information
Kexort committed Aug 12, 2024
1 parent d8541dc commit 7a79389
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/MainRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import OpenProfile from "./pages/OpenProfile/OpenProfile";
import MainProfilePage from "./pages/MainProfilePage/MainProfilePage";

export enum ROUTES {
APP = "/DevconAgora/",
WELCOME1 = "/DevconAgora/welcome1",
WELCOME2 = "/DevconAgora/welcome2",
WELCOME3 = "/DevconAgora/welcome3",
WELCOME4 = "/DevconAgora/welcome4",
OPENPROFILE = "/DevconAgora/openprofile",
MAINPROFILE = "/DevconAgora/mainprofile",
APP = "/",
WELCOME1 = "/welcome1",
WELCOME2 = "/welcome2",
WELCOME3 = "/welcome3",
WELCOME4 = "/welcome4",
OPENPROFILE = "/openprofile",
MAINPROFILE = "/mainprofile",
}

const MainRouter = (): ReactElement => {
Expand Down
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { BrowserRouter } from "react-router-dom";

ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<BrowserRouter>
<BrowserRouter basename={import.meta.env.BASE_URL} >
<MainRouter />
</BrowserRouter>
</React.StrictMode>
Expand Down

0 comments on commit 7a79389

Please sign in to comment.