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:
parent
9b831c86d4
commit
21d47b1f90
@ -10,7 +10,6 @@ import AddBoxTwoToneIcon from '@mui/icons-material/AddBoxTwoTone';
|
||||
|
||||
type BoolFilterProps = {
|
||||
label: string;
|
||||
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
||||
}
|
||||
|
||||
export function BoolFilter({ label }: BoolFilterProps) {
|
||||
|
||||
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user