Remove onFetch from FetchMoreProps
This commit is contained in:
parent
57e3156116
commit
0dcf4b2c5f
3 changed files with 3 additions and 2 deletions
|
@ -81,6 +81,7 @@ interface OrderProductAddDialogProps extends FetchMoreProps {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
products: SearchOrderVariant_products_edges_node[];
|
products: SearchOrderVariant_products_edges_node[];
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
|
onFetch: (query: string) => void;
|
||||||
onSubmit: (data: SearchOrderVariant_products_edges_node_variants[]) => void;
|
onSubmit: (data: SearchOrderVariant_products_edges_node_variants[]) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,7 @@ export interface AssignAttributeDialogProps extends FetchMoreProps {
|
||||||
attributes: SearchAttributes_productType_availableAttributes_edges_node[];
|
attributes: SearchAttributes_productType_availableAttributes_edges_node[];
|
||||||
selected: string[];
|
selected: string[];
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
|
onFetch: (query: string) => void;
|
||||||
onOpen: () => void;
|
onOpen: () => void;
|
||||||
onSubmit: () => void;
|
onSubmit: () => void;
|
||||||
onToggle: (id: string) => void;
|
onToggle: (id: string) => void;
|
||||||
|
|
|
@ -125,9 +125,8 @@ export interface ReorderEvent {
|
||||||
}
|
}
|
||||||
export type ReorderAction = (event: ReorderEvent) => void;
|
export type ReorderAction = (event: ReorderEvent) => void;
|
||||||
|
|
||||||
export interface FetchMoreProps<TData = string> {
|
export interface FetchMoreProps {
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
hasMore: boolean;
|
hasMore: boolean;
|
||||||
onFetch: (value: TData) => void;
|
|
||||||
onFetchMore: () => void;
|
onFetchMore: () => void;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue