Skip to content

Commit

Permalink
[frontend] fix: Setting REACT_APP_API_BASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
helloitsdave committed Mar 23, 2024
1 parent 54213ad commit 87a2e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function App() {
<Header />
<Routes>
<Route path="/" element={loggedIn ? <Navigate to="/notes" /> : <Login onLogin={handleLogin} />} />
<Route path="/notes" element={loggedIn ? <NoteApp /> : <Navigate to="/login" replace />} />
<Route path="/notes" element={loggedIn ? <NoteApp /> : <Navigate to="/" replace />} />
</Routes>
</Router>
);
Expand Down

1 comment on commit 87a2e68

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

91.43%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   App.tsx0%0%0%1, 1, 10–19, 2, 20–27, 3–9
   NoteApp.tsx94.12%100%96.69%66–70
src/api
   apiService.ts90.91%100%100%18
src/components
   Header.tsx0%0%0%1, 1–9
   Login.tsx100%100%100%
   Note.tsx100%100%100%
   NoteForm.tsx100%100%100%
   NoteFormModal.tsx100%100%100%
   NoteGrid.tsx100%100%100%
   Spinner.tsx100%100%100%

Please sign in to comment.