chore: lint
This commit is contained in:
@@ -7,16 +7,16 @@ interface DropdownProps {
|
|||||||
label: string;
|
label: string;
|
||||||
value: string | undefined;
|
value: string | undefined;
|
||||||
handleSelect: (event: SelectChangeEvent) => void;
|
handleSelect: (event: SelectChangeEvent) => void;
|
||||||
children? : React.ReactNode;
|
children?: React.ReactNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Dropdown = ({id, label, value, handleSelect, children}: DropdownProps) => {
|
export const Dropdown = ({ id, label, value, handleSelect, children }: DropdownProps) => {
|
||||||
return (
|
return (
|
||||||
<FormControl sx={{ minWidth: 120 }} size="small">
|
<FormControl sx={{ minWidth: 120 }} size="small">
|
||||||
<InputLabel id={id}>{label}</InputLabel>
|
<InputLabel id={id}>{label}</InputLabel>
|
||||||
<Select
|
<Select
|
||||||
labelId={id}
|
labelId={id}
|
||||||
name = {id}
|
name={id}
|
||||||
value={value}
|
value={value}
|
||||||
label={label}
|
label={label}
|
||||||
onChange={handleSelect}
|
onChange={handleSelect}
|
||||||
|
|||||||
Reference in New Issue
Block a user