Skip to content

Commit

Permalink
fix(fuselage): Add missing types to PaginatedMultiselect / Filtered (#…
Browse files Browse the repository at this point in the history
…988)

* fix(fuselage): Add missing types to PaginatedMultiselect

* chore: typo

---------

Co-authored-by: dougfabris <[email protected]>
  • Loading branch information
MartinSchoeler and dougfabris authored Feb 23, 2023
1 parent 4e0bcff commit 102d97e
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ const SelectedOptions = memo((props) => (
<Chip maxWidth='150px' withTruncatedText {...props} />
));

type PaginatedMultiSelecOption = {
type PaginatedMultiSelectOption = {
value?: string | number;
label?: string | number;
};

type PaginatedMultiSelectProps = ComponentProps<typeof Box> & {
error?: boolean;
options: PaginatedMultiSelecOption[];
options: PaginatedMultiSelectOption[];
withTitle?: boolean;
placeholder: string;
endReached?: (start?: number, end?: number) => void;
value?: PaginatedMultiSelectOption['value'];
};

export const PaginatedMultiSelect = ({
Expand Down Expand Up @@ -189,13 +193,9 @@ export const PaginatedMultiSelect = ({
);
};

type PaginatedMultiSelectFilteredProps = ComponentProps<typeof Box> & {
setFilter?: (value: PaginatedMultiSelecOption['value']) => void;
placeholder: string;
error?: boolean;
options: PaginatedMultiSelecOption[];
type PaginatedMultiSelectFilteredProps = PaginatedMultiSelectProps & {
setFilter?: (value: PaginatedMultiSelectOption['value']) => void;
filter?: string;
value?: PaginatedMultiSelecOption['value'];
};

export const PaginatedMultiSelectFiltered = ({
Expand Down

0 comments on commit 102d97e

Please sign in to comment.