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;
|
||||
products: SearchOrderVariant_products_edges_node[];
|
||||
onClose: () => void;
|
||||
onFetch: (query: string) => void;
|
||||
onSubmit: (data: SearchOrderVariant_products_edges_node_variants[]) => void;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue