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:
parent
0a1d2cbf99
commit
bb81bdae69
16 changed files with 80 additions and 127 deletions
|
@ -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: () => {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue