Skip to content

Commit

Permalink
update base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
LahariReddyMuthyala committed Nov 9, 2024
1 parent 147d4f0 commit 701cb56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "collaborators-portal",
"version": "0.1.0",
"private": true,
"homepage": "https://npnl.github.io/collaborators-directory",
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
Expand Down
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import { BrowserRouter as Router, Routes, Route, BrowserRouter } from "react-router-dom";
import Navbar from "./components/Navbar";
import Login from "./components/Login";
import CompleteSignIn from "./components/CompleteSignIn";
Expand Down Expand Up @@ -71,7 +71,7 @@ const App: React.FC = () => {
}, []);

return (
<Router>
<BrowserRouter basename="/collaborators-directory">
<Navbar isAdmin={isAdmin} />
<div className="container mt-4">
<Routes>
Expand All @@ -82,7 +82,7 @@ const App: React.FC = () => {
<Route path="/collaborators" element={<Collaborators />} />
</Routes>
</div>
</Router>
</BrowserRouter>
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/services/authService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from "firebase/auth";

const actionCodeSettings = {
url: window.location.origin + "/complete-sign-in",
url: window.location.origin + "/collaborators-directory/complete-sign-in",
handleCodeInApp: true,
};

Expand Down

0 comments on commit 701cb56

Please sign in to comment.