update mobile views

This commit is contained in:
plebeius.eth
2024-04-08 17:46:36 +02:00
parent a508059af1
commit 728fab09c7
2 changed files with 12 additions and 4 deletions
+11 -3
View File
@@ -42,9 +42,17 @@ const PostForm = () => {
)}
</div>
<div className={styles.postFormButtonMobile}>
<button className='button' onClick={() => setShowForm(!showForm)}>
{showForm ? t('close_post_form') : isInPostPage ? t('post_a_reply') : t('start_new_thread')}
</button>
{isThreadClosed ? (
<div className={styles.closed}>
Thread closed.
<br />
You may not reply at this time.
</div>
) : (
<button className='button' onClick={() => setShowForm(true)}>
{isInPostPage ? t('post_a_reply') : t('start_new_thread')}
</button>
)}
</div>
</>
);
+1 -1
View File
@@ -336,7 +336,7 @@ const PostMobile = ({ post, roles, showAllReplies }: PostProps) => {
{replyCount > 0 && `${replyCount} Replies`}
{linkCount > 0 && ` / ${linkCount} Links`}
</span>
<Link to={`/p/${subplebbitAddress}/c/${cid}`} className='button'>
<Link to={`/p/${subplebbitAddress}/${isDescription ? 'description' : isRules ? 'rules' : `c/${cid}`}`} className='button'>
{t('view_thread')}
</Link>
</div>