mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added placeholder text to AP reply box
ref https://linear.app/tryghost/issue/AP-399/add-reply-box-placeholder
This commit is contained in:
parent
ea9fcd8f2a
commit
f60f22be2d
1 changed files with 2 additions and 2 deletions
|
@ -3,6 +3,7 @@ import React, {HTMLProps, useId, useState} from 'react';
|
||||||
import * as FormPrimitive from '@radix-ui/react-form';
|
import * as FormPrimitive from '@radix-ui/react-form';
|
||||||
import APAvatar from './APAvatar';
|
import APAvatar from './APAvatar';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
|
import getUsername from '../../utils/get-username';
|
||||||
import {Button} from '@tryghost/admin-x-design-system';
|
import {Button} from '@tryghost/admin-x-design-system';
|
||||||
import {ObjectProperties} from '@tryghost/admin-x-framework/api/activitypub';
|
import {ObjectProperties} from '@tryghost/admin-x-framework/api/activitypub';
|
||||||
import {useReplyMutationForUser} from '../../hooks/useActivityPubQueries';
|
import {useReplyMutationForUser} from '../../hooks/useActivityPubQueries';
|
||||||
|
@ -28,7 +29,6 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
|
||||||
rows = 1,
|
rows = 1,
|
||||||
maxLength,
|
maxLength,
|
||||||
error,
|
error,
|
||||||
placeholder,
|
|
||||||
hint,
|
hint,
|
||||||
className,
|
className,
|
||||||
object,
|
object,
|
||||||
|
@ -70,7 +70,7 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
|
||||||
className={styles}
|
className={styles}
|
||||||
id={id}
|
id={id}
|
||||||
maxLength={maxLength}
|
maxLength={maxLength}
|
||||||
placeholder={placeholder}
|
placeholder={`Reply to ${getUsername(object.attributedTo)}...`}
|
||||||
rows={rows}
|
rows={rows}
|
||||||
value={value}
|
value={value}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
|
|
Loading…
Reference in a new issue