1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

fixed comments loader

This commit is contained in:
Fedor Katurov 2022-07-17 13:27:33 +07:00
parent 0a1d2cbf99
commit bb81bdae69
16 changed files with 80 additions and 127 deletions

View file

@ -7,6 +7,7 @@ export interface CommentProviderProps {
hasMore: boolean;
lastSeenCurrent?: string | null;
isLoading: boolean;
isLoadingMore: boolean;
onShowImageModal: (images: IFile[], index: number) => void;
onLoadMoreComments: () => void;
onSaveComment: (comment: IComment) => Promise<unknown>;
@ -19,6 +20,7 @@ const CommentContext = createContext<CommentProviderProps>({
hasMore: false,
lastSeenCurrent: null,
isLoading: false,
isLoadingMore: false,
onSaveComment: async () => {},
onShowImageModal: () => {},
onLoadMoreComments: () => {},