Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions js/src/components/ui/dropdown/FilterDropdownItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,18 @@ export default function FilterDropdownItem({
disabled={disabled}
{...props}
leftSection={
switchMode ?
!switchMode && <Checkbox checked={value} disabled={disabled} readOnly />
}
rightSection={
switchMode && (
<Switch
// Switch requires onClick to be passed in, while Checkbox doesn't
onClick={toggle}
checked={value}
disabled={disabled}
withThumbIndicator={false}
/>
Comment thread
naanci marked this conversation as resolved.
Comment thread
angelayu0530 marked this conversation as resolved.
: <Checkbox checked={value} disabled={disabled} readOnly />
)
}
>
<div
Expand Down
Loading