File tree Expand file tree Collapse file tree
moducon-frontend/src/components/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { Home } from 'lucide-react';
99export function Header ( ) {
1010 const pathname = usePathname ( ) ;
1111 const { user } = useAuthStore ( ) ;
12- const isHome = pathname === '/home ' || pathname === '/' ;
12+ const isHome = pathname === '/' || pathname ?. startsWith ( '/home' ) ;
1313
1414 // 이름에서 성(첫 글자) 추출
1515 const getInitial = ( name : string ) => {
@@ -22,11 +22,9 @@ export function Header() {
2222 { /* 왼쪽: 홈 아이콘 */ }
2323 < Link
2424 href = "/home"
25- className = { `w-9 h-9 rounded-full flex items-center justify-center transition-colors ${
26- isHome ? 'bg-white/30' : 'bg-white/10 hover:bg-white/20'
27- } `}
25+ className = "flex items-center justify-center transition-all"
2826 >
29- < Home className = { `w-5 h-5 ${ isHome ? 'text-white' : 'text-white /60' } ` } />
27+ < Home className = { `w-6 h-6 ${ isHome ? 'text-white scale-110 ' : 'text-black /60' } ` } />
3028 </ Link >
3129
3230 { /* 가운데: 로고 */ }
You can’t perform that action at this time.
0 commit comments