Skip to content

Commit ce4faf8

Browse files
committed
Revert "Issue 1"
1 parent 021c08d commit ce4faf8

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/views/Layout.jsx

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
/* eslint-disable jsx-a11y/anchor-is-valid */
12
import { Outlet } from 'react-router-dom';
23

34
import './Layout.css';
4-
import { auth } from '../api/config.js';
5-
import { useAuth, SignInButton, SignOutButton } from '../api/useAuth.jsx';
65

76
/**
87
* TODO: The links defined in this file don't work!
@@ -13,20 +12,11 @@ import { useAuth, SignInButton, SignOutButton } from '../api/useAuth.jsx';
1312
*/
1413

1514
export function Layout() {
16-
const { user } = useAuth();
1715
return (
1816
<>
1917
<div className="Layout">
2018
<header className="Layout-header">
2119
<h1>Smart shopping list</h1>
22-
{!!user ? (
23-
<div>
24-
<span>Signed in as {auth.currentUser.displayName}</span> (
25-
<SignOutButton />)
26-
</div>
27-
) : (
28-
<SignInButton />
29-
)}
3020
</header>
3121
<main className="Layout-main">
3222
<Outlet />

0 commit comments

Comments
 (0)