diff --git a/src/components/comment/LocalCommentFormTextarea/index.tsx b/src/components/comment/LocalCommentFormTextarea/index.tsx deleted file mode 100644 index d901d241..00000000 --- a/src/components/comment/LocalCommentFormTextarea/index.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import React, { forwardRef, KeyboardEventHandler, TextareaHTMLAttributes, useCallback } from 'react'; - -import { Textarea } from '~/components/input/Textarea'; -import { useRandomPhrase } from '~/constants/phrases'; -import { useCommentFormContext } from '~/hooks/comments/useCommentFormFormik'; - -interface IProps extends TextareaHTMLAttributes { - isLoading?: boolean; -} - -const LocalCommentFormTextarea = forwardRef(({ ...rest }, ref) => { - const { values, handleChange, handleSubmit, isSubmitting } = useCommentFormContext(); - - const onKeyDown = useCallback>( - ({ ctrlKey, key, metaKey }) => { - if ((ctrlKey || metaKey) && key === 'Enter') handleSubmit(undefined); - }, - [handleSubmit] - ); - - const placeholder = useRandomPhrase('SIMPLE'); - - return ( -