We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a7520c commit 6ca3608Copy full SHA for 6ca3608
1 file changed
src/widgets/main/ui/BottomBar.tsx
@@ -10,11 +10,7 @@ const BottomBar = () => {
10
key={index}
11
className="flex flex-col justify-center items-center w-24 h-20 cursor-pointer"
12
onClick={() => {
13
- if (location.pathname === item.path) {
14
- navigate(-1);
15
- } else {
16
- navigate(item.path);
17
- }
+ navigate(item.path);
18
}}
19
>
20
<img src={item.icon} alt={`${item.label}Icon`} className={`${item.iconClassName} object-contain`} />
0 commit comments