mirror of
https://github.com/plebbit/seedit.git
synced 2026-05-24 16:50:31 -04:00
feat(sidebar): add community settings button
This commit is contained in:
@@ -216,4 +216,13 @@ a {
|
||||
padding-top: 10px;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.bottomButtons {
|
||||
margin-top: 10px;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
.communitySettings {
|
||||
float: right;
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user