From f60f22be2d900cf65554cb4db82eb4ade5b597e0 Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Wed, 18 Sep 2024 15:25:12 +0100 Subject: [PATCH] Added placeholder text to AP reply box ref https://linear.app/tryghost/issue/AP-399/add-reply-box-placeholder --- apps/admin-x-activitypub/src/components/global/APReplyBox.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/admin-x-activitypub/src/components/global/APReplyBox.tsx b/apps/admin-x-activitypub/src/components/global/APReplyBox.tsx index 6ff58ebc5a..418f1e4236 100644 --- a/apps/admin-x-activitypub/src/components/global/APReplyBox.tsx +++ b/apps/admin-x-activitypub/src/components/global/APReplyBox.tsx @@ -3,6 +3,7 @@ import React, {HTMLProps, useId, useState} from 'react'; import * as FormPrimitive from '@radix-ui/react-form'; import APAvatar from './APAvatar'; import clsx from 'clsx'; +import getUsername from '../../utils/get-username'; import {Button} from '@tryghost/admin-x-design-system'; import {ObjectProperties} from '@tryghost/admin-x-framework/api/activitypub'; import {useReplyMutationForUser} from '../../hooks/useActivityPubQueries'; @@ -28,7 +29,6 @@ const APReplyBox: React.FC = ({ rows = 1, maxLength, error, - placeholder, hint, className, object, @@ -70,7 +70,7 @@ const APReplyBox: React.FC = ({ className={styles} id={id} maxLength={maxLength} - placeholder={placeholder} + placeholder={`Reply to ${getUsername(object.attributedTo)}...`} rows={rows} value={value} onChange={handleChange}