Ver Fonte

fix lint error

jam411 há 3 anos atrás
pai
commit
f19ae307e5

+ 2 - 1
packages/app/src/components/PageComment/DeleteCommentModal.tsx

@@ -1,5 +1,6 @@
 import React from 'react';
 
+import { Nullable } from '@growi/core';
 import { UserPicture } from '@growi/ui';
 import { format } from 'date-fns';
 import {
@@ -14,7 +15,7 @@ import styles from './DeleteCommentModal.module.scss';
 
 export type DeleteCommentModalProps = {
   isShown: boolean,
-  comment?: ICommentHasId,
+  comment?: Nullable<ICommentHasId>,
   errorMessage: string,
   cancelToDelete: () => void,
   confirmeToDelete: () => void,