Remove unused imports and add some types

This commit is contained in:
riggraz
2019-09-26 11:00:32 +02:00
parent e38027f9ae
commit 322c8e51cf
19 changed files with 27 additions and 45 deletions

View File

@@ -1,5 +1,4 @@
import * as React from 'react';
import { FormEvent } from 'react';
import NewComment from './NewComment';
import Separator from '../shared/Separator';
@@ -12,14 +11,12 @@ import friendlyDate from '../../helpers/friendlyDate';
interface Props {
id: number;
body: string;
parentId: number;
userFullName: string;
updatedAt: string;
level: number;
reply: CommentRepliesState;
handleToggleCommentReply(): void;
handleCommentReplyBodyChange(e: FormEvent): void;
handleCommentReplyBodyChange(e: React.FormEvent): void;
handleSubmitComment(body: string, parentId: number): void;
isLoggedIn: boolean;
@@ -29,11 +26,9 @@ interface Props {
const Comment = ({
id,
body,
parentId,
userFullName,
updatedAt,
level,
reply,
handleToggleCommentReply,
handleCommentReplyBodyChange,