feat(sidebar): add community settings button

This commit is contained in:
plebeius.eth
2024-01-04 15:54:40 +01:00
parent 6684c323c9
commit dbbba0732f
2 changed files with 16 additions and 2 deletions

View File

@@ -216,4 +216,13 @@ a {
padding-top: 10px;
color: var(--text-primary);
cursor: pointer;
}
.bottomButtons {
margin-top: 10px;
text-transform: lowercase;
}
.communitySettings {
float: right;
}

View File

@@ -159,8 +159,13 @@ const Sidebar = ({ address, cid, createdAt, description, downvoteCount = 0, role
{t('created_by', { creatorAddress: '' })}
<Link to={`/u/${creatorAddress}`} onClick={(e) => e.preventDefault()}>{`u/${creatorAddress}`}</Link>
{createdAt && <span className={styles.age}> {t('community_for', { date: getFormattedTimeDuration(createdAt) })}</span>}
<div className={styles.blockSub} onClick={blockConfirm}>
{blocked ? t('unblock_community') : t('block_community')}
<div className={styles.bottomButtons}>
<span className={styles.blockSub} onClick={blockConfirm}>
{blocked ? t('unblock_community') : t('block_community')}
</span>
<span className={styles.communitySettings}>
<Link to={`/p/${address}/settings`}>{t('settings')}</Link>
</span>
</div>
</div>
</div>