mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
(nextjs) fixed getServerSideProps typings
This commit is contained in:
parent
2d9d88f1a1
commit
d9127e5b7c
4 changed files with 15 additions and 16 deletions
|
@ -4,7 +4,7 @@ import React, { createContext, FC, useContext } from 'react';
|
|||
export interface CommentProviderProps {
|
||||
comments: IComment[];
|
||||
hasMore: boolean;
|
||||
lastSeenCurrent?: string;
|
||||
lastSeenCurrent?: string | null;
|
||||
isLoading: boolean;
|
||||
onShowImageModal: (images: IFile[], index: number) => void;
|
||||
onLoadMoreComments: () => void;
|
||||
|
@ -16,7 +16,7 @@ const CommentContext = createContext<CommentProviderProps>({
|
|||
// user: EMPTY_USER,
|
||||
comments: [],
|
||||
hasMore: false,
|
||||
lastSeenCurrent: undefined,
|
||||
lastSeenCurrent: null,
|
||||
isLoading: false,
|
||||
onSaveComment: async () => {},
|
||||
onShowImageModal: () => {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue