style(reply modal): add c/shortParentCid to textarea

This commit is contained in:
plebeius.eth
2024-05-09 22:25:06 +02:00
parent 561b027f23
commit f26bcfeced
3 changed files with 15 additions and 9 deletions
+1 -3
View File
@@ -88,10 +88,8 @@ const ReplyModal = ({ closeModal, parentCid, scrollY }: ReplyModalProps) => {
<div className={styles.link}>
<input type='text' ref={urlRef} placeholder={_.capitalize(t('link'))} onChange={(e) => setContent.link(e.target.value)} />
</div>
<div className={styles.parentCid}>
<input type='text' readOnly value={`c/${parentCid && Plebbit.getShortCid(parentCid)}`} />
</div>
<div className={styles.content}>
<span className={styles.parentCid}>{`c/${parentCid && Plebbit.getShortCid(parentCid)}`}</span>
<textarea
cols={48}
rows={4}