mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(frontend): show page when login fails
This commit is contained in:
parent
cffddedc81
commit
32dcd84964
6 changed files with 35 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import React from "react";
|
||||
import { Route, Switch } from "react-router-dom";
|
||||
import { LoginFailure } from "./components/LoginFailure";
|
||||
import { NavBar } from "./components/NavBar";
|
||||
import { useAuth } from "./hooks/use-auth";
|
||||
import "./tailwind/generated.css";
|
||||
|
|
@ -7,8 +8,6 @@ import "./tailwind/generated.css";
|
|||
export function App() {
|
||||
const { isLoaded } = useAuth();
|
||||
|
||||
console.log("App", { isLoaded });
|
||||
|
||||
if (!isLoaded) {
|
||||
return <div>Loading...</div>;
|
||||
}
|
||||
|
|
@ -20,6 +19,7 @@ export function App() {
|
|||
</header>
|
||||
<Switch>
|
||||
<Route path="/" exact />
|
||||
<Route path="/login/failure" exact component={LoginFailure} />
|
||||
</Switch>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue