diff --git a/web/src/layouts/MainLayout/MainLayout.js b/web/src/layouts/MainLayout/MainLayout.js index 2782e2c..2383513 100644 --- a/web/src/layouts/MainLayout/MainLayout.js +++ b/web/src/layouts/MainLayout/MainLayout.js @@ -1,6 +1,8 @@ import { Link, routes } from '@redwoodjs/router' +import { useAuth } from '@redwoodjs/auth' const MainLayout = ({ children }) => { + const { logIn, logOut, isAuthenticated } = useAuth() return ( <>
@@ -18,6 +20,11 @@ const MainLayout = ({ children }) => {
  • Contact
  • +
  • + + {isAuthenticated ? 'Log Out' : 'Log In'} + +