♻️(react) delete duplicated SelectMultiProps

During dev I realized that we had a duplicated SelectMultiProps which
was really misleanding.
This commit is contained in:
Nathan Vasse
2023-11-21 16:50:20 +01:00
committed by NathanVss
parent 7201409d00
commit 7c13badeb2

View File

@@ -37,14 +37,11 @@ export function getMultiOptionsFilter(
}; };
} }
export type SelectMultiProps = Omit<SelectProps, "onChange"> & { export type SubProps = Omit<SelectProps, "onChange"> & {
onChange?: (event: { target: { value: string[] } }) => void; onChange?: (event: { target: { value: string[] } }) => void;
};
export interface SubProps extends SelectMultiProps {
selectedItems: Option[];
onSelectedItemsChange: (selectedItems: Option[]) => void; onSelectedItemsChange: (selectedItems: Option[]) => void;
} selectedItems: Option[];
};
export const SelectMultiAux = ({ export const SelectMultiAux = ({
options, options,