diff --git a/src/app/PageLayout.js b/src/app/PageLayout.js index 5e0b3b3..66b5662 100644 --- a/src/app/PageLayout.js +++ b/src/app/PageLayout.js @@ -20,8 +20,7 @@ function PageLayout({ children, hideHomeLink }) { marginBottom="6" > {!hideHomeLink && } - - + {children} @@ -69,7 +68,7 @@ function HomeLink() { ); } -function UserLoginLogout() { +function UserLoginLogout(props) { const { isLoading, isAuthenticated, loginWithRedirect, logout } = useAuth0(); const { id, username } = useCurrentUser(); @@ -79,8 +78,12 @@ function UserLoginLogout() { if (isAuthenticated) { return ( - - {username && Hi, {username}!} + + {username && ( + + Hi, {username}! + + )} {id && (