diff --git a/src/components/Comment/Comment.tsx b/src/components/Comment/Comment.tsx index 77aa81e57f..71d74b95dd 100644 --- a/src/components/Comment/Comment.tsx +++ b/src/components/Comment/Comment.tsx @@ -1,5 +1,4 @@ import React, { createRef, useEffect, useState } from 'react' -import { FaTrash, FaRegEdit } from 'react-icons/fa' import { Flex } from 'rebass/styled-components' import { IComment } from 'src/models' import { CommentHeader } from './CommentHeader' @@ -26,7 +25,7 @@ export const Comment: React.FC = ({ handleEdit, ...props }) => { - const textRef = createRef(); + const textRef = createRef() const [showEditModal, setShowEditModal] = useState(false) const [textHeight, setTextHeight] = useState(0) const [isShowMore, setShowMore] = useState(false) @@ -47,7 +46,7 @@ export const Comment: React.FC = ({ }, []) const showMore = () => { - setShowMore(!isShowMore); + setShowMore(!isShowMore) } return ( @@ -61,52 +60,49 @@ export const Comment: React.FC = ({ > {text} - {textHeight > 160 && - - {isShowMore ? 'Show less' : 'Show more'} - - } + {textHeight > 160 && ( + + {isShowMore ? 'Show less' : 'Show more'} + + )} - - edit - - +