Skip to content

Commit

Permalink
fix login page route
Browse files Browse the repository at this point in the history
Signed-off-by: Teo Koon Peng <koonpeng@openrobotics.org>
  • Loading branch information
Teo Koon Peng committed Aug 22, 2023
1 parent 189227b commit 53cbb45
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions packages/dashboard/src/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,18 @@ export default function App(): JSX.Element | null {
</RmfApp>
) : (
<Routes>
<Route path={LoginRoute}>
<LoginPage
title={'Dashboard'}
logo="assets/defaultLogo.png"
onLoginClick={() => authenticator.login(`${window.location.origin}${DashboardRoute}`)}
/>
</Route>
<Route
path={LoginRoute}
element={
<LoginPage
title={'Dashboard'}
logo="assets/defaultLogo.png"
onLoginClick={() =>
authenticator.login(`${window.location.origin}${DashboardRoute}`)
}
/>
}
/>
<Route>
<Link to={LoginRoute} />
</Route>
Expand Down

0 comments on commit 53cbb45

Please sign in to comment.