Remove onFetch from FetchMoreProps

This commit is contained in:
dominik-zeglen 2019-08-12 16:11:10 +02:00
parent 57e3156116
commit 0dcf4b2c5f
3 changed files with 3 additions and 2 deletions

View file

@ -81,6 +81,7 @@ interface OrderProductAddDialogProps extends FetchMoreProps {
open: boolean;
products: SearchOrderVariant_products_edges_node[];
onClose: () => void;
onFetch: (query: string) => void;
onSubmit: (data: SearchOrderVariant_products_edges_node_variants[]) => void;
}

View file

@ -54,6 +54,7 @@ export interface AssignAttributeDialogProps extends FetchMoreProps {
attributes: SearchAttributes_productType_availableAttributes_edges_node[];
selected: string[];
onClose: () => void;
onFetch: (query: string) => void;
onOpen: () => void;
onSubmit: () => void;
onToggle: (id: string) => void;

View file

@ -125,9 +125,8 @@ export interface ReorderEvent {
}
export type ReorderAction = (event: ReorderEvent) => void;
export interface FetchMoreProps<TData = string> {
export interface FetchMoreProps {
loading: boolean;
hasMore: boolean;
onFetch: (value: TData) => void;
onFetchMore: () => void;
}