Skip to content

Commit 6ca3608

Browse files
committed
refact: 하단바 홈 버튼 클릭 시 뒤로가기 기능 삭제
1 parent 3a7520c commit 6ca3608

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/widgets/main/ui/BottomBar.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ const BottomBar = () => {
1010
key={index}
1111
className="flex flex-col justify-center items-center w-24 h-20 cursor-pointer"
1212
onClick={() => {
13-
if (location.pathname === item.path) {
14-
navigate(-1);
15-
} else {
16-
navigate(item.path);
17-
}
13+
navigate(item.path);
1814
}}
1915
>
2016
<img src={item.icon} alt={`${item.label}Icon`} className={`${item.iconClassName} object-contain`} />

0 commit comments

Comments
 (0)