1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

search load more

This commit is contained in:
Fedor Katurov 2020-04-18 18:07:39 +07:00
parent 94ac596b92
commit 9498c7b7a0
12 changed files with 199 additions and 26 deletions

View file

@ -10,8 +10,10 @@ export type IFlowState = Readonly<{
updated: Partial<INode>[];
search: {
text: string;
is_loading: boolean;
results: INode[];
total: number;
is_loading: boolean;
is_loading_more: boolean;
};
error: IError;
}>;
@ -23,8 +25,10 @@ const INITIAL_STATE: IFlowState = {
updated: [],
search: {
text: '',
is_loading: false,
results: [],
total: 0,
is_loading: false,
is_loading_more: false,
},
is_loading: false,
error: null,