Skip to content

Commit

Permalink
Merge pull request #602 from knowit/fix/601-fjerne-duplikat-loginknap…
Browse files Browse the repository at this point in the history
…p-pa-forsiden

[601] Fjernet duplikat loginknapp på forsiden
  • Loading branch information
joacimds authored Jun 26, 2024
2 parents d49d9f8 + a93c66a commit 4b67a08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
5 changes: 1 addition & 4 deletions apps/web/src/components/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ import {
OrganizationStructurePage,
} from '../pages'
import { useUserInfo } from '../hooks/useUserInfo'
import LoginPage from '../pages/login/LoginPage'

export default function Content() {
const { isAuthenticated } = useUserInfo()

return (
<>
{isAuthenticated ? (
{isAuthenticated && (
<Routes>
<Route path="/" element={<Navigate replace to="/ansatte" />} />
<Route path="/ansatte" element={<EmployeePage />} />
Expand All @@ -32,8 +31,6 @@ export default function Content() {
<Route path="/debug" element={<DebugPage />} />
<Route path="*" element={<NotFoundPage />} />
</Routes>
) : (
<LoginPage />
)}
</>
)
Expand Down
21 changes: 0 additions & 21 deletions apps/web/src/pages/login/LoginPage.tsx

This file was deleted.

0 comments on commit 4b67a08

Please sign in to comment.