Skip to content

Commit e672e90

Browse files
refactor(IconRail): update icon rendering based on theme and remove unused Home icon
- Modified the icon rendering to apply a conditional class for dark mode. - Removed the unused Home icon component to streamline the code.
1 parent 500ba5d commit e672e90

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

packages/web/src/components/IconRail.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,11 @@ export function IconRail({ onToggleTheme, onOpenSettings, theme }: IconRailProps
4040
className="w-8 h-8 rounded-lg flex items-center justify-center overflow-hidden hover:rounded-xl transition-all"
4141
title="BotsChat"
4242
>
43-
<img src="/botschat-logo.png" alt="BotsChat" className="w-8 h-8" />
43+
<img src="/botschat-logo.png" alt="BotsChat" className={`w-8 h-8 ${theme === "dark" ? "invert" : ""}`} />
4444
</button>
4545

4646
<div className="w-7 border-t my-1" style={{ borderColor: "var(--sidebar-divider)" }} />
4747

48-
{/* Home */}
49-
<RailIcon
50-
label="Home"
51-
active={false}
52-
icon={
53-
<svg className="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={1.5}>
54-
<path strokeLinecap="round" strokeLinejoin="round" d="M2.25 12l8.954-8.955a1.126 1.126 0 011.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />
55-
</svg>
56-
}
57-
/>
58-
5948
{/* Messages */}
6049
<RailIcon
6150
label="Messages"

0 commit comments

Comments
 (0)