Skip to content

Commit

Permalink
Require auth for appbar
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth committed Oct 3, 2024
1 parent 473269a commit e50baf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dashboard/src/components/rmf-dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ function DashboardContents({
/>
<Route
element={
<>
<RequireAuth redirectTo={`${baseUrl}login`}>
<AppBar
tabs={allTabs.map((t) => (
<Tab
Expand All @@ -329,7 +329,7 @@ function DashboardContents({
extraToolbarItems={extraAppbarItems}
/>
{!pendingTransition && <Outlet />}
</>
</RequireAuth>
}
>
{allTabs.map((t) => (
Expand Down

0 comments on commit e50baf5

Please sign in to comment.