mirror of
https://github.com/plebbit/seedit.git
synced 2026-08-04 11:55:24 -04:00
fix(sidebar): 'created by u/' link shouldn't be a link because it has no cid
This commit is contained in:
@@ -26,7 +26,6 @@ import {
|
||||
} from '../../lib/utils/user-utils';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
// import { useDefaultSubplebbitAddresses } from '../../lib/utils/addresses-utils';
|
||||
import SubscribeButton from '../subscribe-button';
|
||||
|
||||
// TODO: uncomment when useSubplebbits({fetch: false}) is implemented, because fetching all subs for this is too expensive
|
||||
|
||||
|
||||
@@ -224,7 +224,7 @@ const Sidebar = ({ address, cid, createdAt, description, downvoteCount = 0, role
|
||||
{rules && rules.length > 0 && <RulesList rules={rules} />}
|
||||
<div className={styles.bottom}>
|
||||
{t('created_by', { creatorAddress: '' })}
|
||||
<Link to={`/u/${creatorAddress}`} onClick={(e) => e.preventDefault()}>{`u/${creatorAddress}`}</Link>
|
||||
<span>{`u/${creatorAddress}`}</span>
|
||||
{createdAt && <span className={styles.age}> {t('community_for', { date: getFormattedTimeDuration(createdAt) })}</span>}
|
||||
<div className={styles.bottomButtons}>
|
||||
<span className={styles.blockSub} onClick={blockConfirm}>
|
||||
|
||||
Reference in New Issue
Block a user