File tree 6 files changed +13
-6
lines changed
6 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { PropsWithChildren } from 'react';
4
4
import type { Metadata } from 'next' ;
5
5
6
6
import { Footer } from '@/components/footer' ;
7
- import { Header } from '@/components/header ' ;
7
+ import { Navbar } from '@/components/navbar/navbar ' ;
8
8
import { ThemeProvider } from '@/components/theme-provider' ;
9
9
import { siteConfig } from '@/lib/constant' ;
10
10
import { fonts } from '@/lib/fonts' ;
@@ -49,7 +49,7 @@ const RootLayout = ({ children }: PropsWithChildren) => {
49
49
< html lang = "en" suppressHydrationWarning >
50
50
< body className = { cn ( 'min-h-screen font-sans' , fonts ) } >
51
51
< ThemeProvider attribute = "class" >
52
- < Header />
52
+ < Navbar />
53
53
{ children }
54
54
< Footer />
55
55
</ ThemeProvider >
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import Link from 'next/link';
2
2
import { getServerSession } from 'next-auth' ;
3
3
4
4
import { authOptions } from '@/app/api/auth/[...nextauth]/auth-options' ;
5
- import { SignInButton } from '@/components/sign-in-button' ;
6
- import { ThemeToggle } from '@/components/theme-toggle' ;
7
- import { UserDropdown } from '@/components/user-dropdown' ;
5
+ import { SignInButton } from '@/components/navbar/ sign-in-button' ;
6
+ import { ThemeToggle } from '@/components/navbar/ theme-toggle' ;
7
+ import { UserDropdown } from '@/components/navbar/ user-dropdown' ;
8
8
9
- export const Header = async ( ) => {
9
+ export const Navbar = async ( ) => {
10
10
const session = await getServerSession ( authOptions ) ;
11
11
12
12
return (
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export const UserDropdown = ({ session }: { session: Session }) => {
17
17
< DropdownMenu >
18
18
< DropdownMenuTrigger >
19
19
< Image
20
+ className = "overflow-hidden rounded-full"
20
21
src = { `${ session . user ?. image } ` }
21
22
alt = { `${ session . user ?. name } ` }
22
23
width = { 32 }
Original file line number Diff line number Diff line change
1
+ export type TUser = {
2
+ id : string ;
3
+ email : string ;
4
+ name : string ;
5
+ image : string ;
6
+ } ;
You can’t perform that action at this time.
0 commit comments