Skip to content

Commit 207b861

Browse files
committed
fix: no duplicate icon
1 parent 1404092 commit 207b861

File tree

1 file changed

+2
-4
lines changed
  • apps/array/src/renderer/features/sidebar/components/items

1 file changed

+2
-4
lines changed

apps/array/src/renderer/features/sidebar/components/items/ViewItem.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ListNumbersIcon } from "@phosphor-icons/react";
1+
import { ListNumbersIcon, UserIcon } from "@phosphor-icons/react";
22
import { SidebarItem } from "../SidebarItem";
33

44
interface ViewItemProps {
@@ -11,9 +11,7 @@ export function ViewItem({ label, isActive, onClick }: ViewItemProps) {
1111
return (
1212
<SidebarItem
1313
depth={0}
14-
icon={
15-
<ListNumbersIcon size={12} weight={isActive ? "fill" : "regular"} />
16-
}
14+
icon={label === "My tasks" ? <UserIcon size={12} weight={isActive ? "fill" : "regular"} /> : <ListNumbersIcon size={12} weight={isActive ? "fill" : "regular"} />}
1715
label={label}
1816
isActive={isActive}
1917
onClick={onClick}

0 commit comments

Comments
 (0)