frontend/src/Book/Note/Comments/Comment.tsx
Function Comment
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Comment: FunctionComponent<CommentType> = (props) => {
const { id, user, createdAt } = props;
const [text, setText] = useState<string>(props.text);
const [showForm, setShowForm] = useState<boolean>(false);
const [hidden, setHidden] = useState<boolean>(false);