1
0
Fork 0
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:
Fedor Katurov 2022-01-17 18:42:23 +07:00
parent 2d9d88f1a1
commit d9127e5b7c
4 changed files with 15 additions and 16 deletions

View file

@ -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: () => {},