Remove unused import and update BoolFilterProps

Removed the import statement for `FormControlLabel` from `bool-filter.tsx`. Also, eliminated the optional `onClick` property from the `BoolFilterProps` type definition.
This commit is contained in:
tekh 2025-07-04 14:29:10 +02:00
parent 9b831c86d4
commit 21d47b1f90
2 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@ import AddBoxTwoToneIcon from '@mui/icons-material/AddBoxTwoTone';
type BoolFilterProps = {
label: string;
onClick?: React.MouseEventHandler<HTMLButtonElement>;
}
export function BoolFilter({ label }: BoolFilterProps) {

View File

@ -109,7 +109,7 @@ export function DocSearchView({ posts }: Props) {
case 'DECIMAL':
case 'DATE':
default:
filterComp = (<TextField id={`filter-${filter.id.toString()}`} label={filter.label ?? filter.type} variant="filled" />)
filterComp = <TextField id={`filter-${filter.id.toString()}`} label={filter.label ?? filter.type} variant="filled" />
break;
}
return (