Skip to content

Commit

Permalink
add active theme
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed Jul 29, 2024
1 parent 19b673e commit 6401efb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/SessionsList/SessionListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const SessionListItem: FC<SessionListItemProps> = ({
dense
disableGutters
active={session.id === activeSessionId}
className={cn(theme.sessions.session.base)}
className={cn(theme.sessions.session.base, { [theme.sessions.session.active]: session.id === activeSessionId })}
onClick={() => selectSession?.(session.id)}
end={
<>
Expand Down
2 changes: 2 additions & 0 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface ChatTheme {
group: string;
session: {
base: string;
active: string;
delete: string;
};
};
Expand Down Expand Up @@ -60,6 +61,7 @@ export const chatTheme: ChatTheme = {
create: 'mb-4',
session: {
base: '',
active: ' text-primary',
delete: '[&>svg]:w-4 [&>svg]:h-4 opacity-50'
}
},
Expand Down

0 comments on commit 6401efb

Please sign in to comment.