Skip to content

Commit fdcfc32

Browse files
hchangclaude
andcommitted
fix: 홈 버튼 활성 상태 startsWith로 수정
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d3a9bfe commit fdcfc32

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

moducon-frontend/src/components/layout/Header.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Home } from 'lucide-react';
99
export 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
{/* 가운데: 로고 */}

0 commit comments

Comments
 (0)