Skip to content

Commit

Permalink
Samuel branch (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcosta02 authored Jul 1, 2024
2 parents a3d33a9 + 9f8dbf4 commit 58c26c2
Show file tree
Hide file tree
Showing 11 changed files with 429 additions and 309 deletions.
29 changes: 14 additions & 15 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,24 @@ import Footer from "./Components/Footer";
import Navbar from "./Components/Navbar/Navbar";
import LandingPage from "./Components/LandingPage";


function App() {
const auth = useAuth();
const auth = useAuth();

switch (auth.activeNavigator) {
case "signinSilent":
return <div>Signing you in...</div>;
case "signoutRedirect":
return <div>Signing you out...</div>;
}
switch (auth.activeNavigator) {
case "signinSilent":
return <div>Signing you in...</div>;
case "signoutRedirect":
return <div>Signing you out...</div>;
}

if (auth.isLoading) {
return <div>Loading...</div>;
}
if (auth.isLoading) {
return <div>Loading...</div>;
}

if (auth.error) {
console.error(auth.error);
return <div>Oops... {auth.error.message}</div>;
}
if (auth.error) {
console.error(auth.error);
return <div>Oops... {auth.error.message}</div>;
}

if (auth.isAuthenticated) {
return (
Expand Down
Loading

0 comments on commit 58c26c2

Please sign in to comment.