-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polishes UI of login screen and makes logout button appear everywhere (not just home page)
- Loading branch information
1 parent
e56cabd
commit 24706ed
Showing
5 changed files
with
91 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
import SidebarComponent from '@/components/SidebarComponent'; | ||
import { Layout } from '@/lib/Layout'; | ||
import { cookies } from 'next/headers'; | ||
import { PropsWithChildren } from 'react'; | ||
|
||
export default function PageLayout({ children }: PropsWithChildren) { | ||
return <Layout sidebar={<SidebarComponent />}>{children}</Layout>; | ||
return ( | ||
<Layout sidebar={<SidebarComponent logout={!!cookies().get('auth')} />}> | ||
{children} | ||
</Layout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
import SidebarComponent from '@/components/SidebarComponent'; | ||
import { Layout } from '@/lib/Layout'; | ||
import { cookies } from 'next/headers'; | ||
import { PropsWithChildren } from 'react'; | ||
|
||
export default function PageLayout({ children }: PropsWithChildren) { | ||
return <Layout sidebar={<SidebarComponent />}>{children}</Layout>; | ||
return ( | ||
<Layout sidebar={<SidebarComponent logout={!!cookies().get('auth')} />}> | ||
{children} | ||
</Layout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters