mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed linting issue
ref https://linear.app/tryghost/issue/AP-307/component-for-replying-to-objects-in-the-inboxfeed
This commit is contained in:
parent
9bd2b26226
commit
ae50afe307
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
|
|||
className
|
||||
);
|
||||
|
||||
async function handleClick(event: React.MouseEvent) {
|
||||
async function handleClick() {
|
||||
await replyMutation.mutate({id: object.id, content: textValue}, {
|
||||
onSuccess(activity) {
|
||||
setTextValue('');
|
||||
|
@ -102,6 +102,7 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
|
|||
<textarea
|
||||
ref={textareaRef}
|
||||
className={styles}
|
||||
disabled={replyMutation.isLoading}
|
||||
id={id}
|
||||
maxLength={maxLength}
|
||||
placeholder={`Reply to ${getUsername(object.attributedTo)}...`}
|
||||
|
@ -110,7 +111,6 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
|
|||
onBlur={handleBlur}
|
||||
onChange={handleChange}
|
||||
onFocus={handleFocus}
|
||||
disabled={replyMutation.isLoading}
|
||||
{...props}>
|
||||
</textarea>
|
||||
</FormPrimitive.Control>
|
||||
|
|
Loading…
Add table
Reference in a new issue