Fix step list item props type

[PREMIUM-194]
This commit is contained in:
Jan Jakes
2022-08-26 11:04:54 +02:00
committed by Veljko V
parent 84d4cd94d5
commit 2915c38ed9

View File

@@ -15,7 +15,9 @@ const isAppleOS = (): boolean => {
); );
}; };
type Props = ComponentProps<typeof InserterListboxItem> & { type ListboxItemProps = ComponentProps<typeof InserterListboxItem>;
type Props = Omit<ListboxItemProps, 'onSelect' | 'onHover'> & {
item: Item; item: Item;
onSelect: (item: Item, isModifierKey: boolean) => void; onSelect: (item: Item, isModifierKey: boolean) => void;
onHover: (item: Item) => void; onHover: (item: Item) => void;