Change icon for state multiselect

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2024-04-09 12:50:22 +02:00
parent 1049c90cb5
commit 50118dc174

View file

@ -9,7 +9,7 @@ import {
PillsInput, PillsInput,
useCombobox, useCombobox,
} from "@mantine/core"; } from "@mantine/core";
import { IconActivity } from "@tabler/icons-react"; import { IconHeartRateMonitor } from "@tabler/icons-react";
interface StatePillProps extends React.ComponentPropsWithoutRef<"div"> { interface StatePillProps extends React.ComponentPropsWithoutRef<"div"> {
value: string; value: string;
@ -78,7 +78,7 @@ export const StateMultiSelect: FC<StateMultiSelectProps> = ({
pointer pointer
onClick={() => combobox.toggleDropdown()} onClick={() => combobox.toggleDropdown()}
miw={200} miw={200}
leftSection={<IconActivity size={14} />} leftSection={<IconHeartRateMonitor size={14} />}
rightSection={ rightSection={
values.length > 0 ? ( values.length > 0 ? (
<ComboboxClearButton onClear={() => onChange([])} /> <ComboboxClearButton onClear={() => onChange([])} />