1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

boris and flow for everyone

This commit is contained in:
Fedor Katurov 2019-12-03 16:53:24 +07:00
parent 872e91b39b
commit 0d64d847a1
2 changed files with 11 additions and 12 deletions

View file

@ -60,21 +60,20 @@ const HeaderUnconnected: FC<IProps> = memo(
<Filler /> <Filler />
{is_user && ( <div className={style.plugs}>
<div className={style.plugs}> <Link className={style.item} to={URLS.BASE}>
<Link className={style.item} to={URLS.BASE}> ФЛОУ
ФЛОУ </Link>
</Link>
<Link className={style.item} to={URLS.BORIS}>
БОРИС
</Link>
<Link className={style.item} to={URLS.BORIS}>
БОРИС
</Link>
{is_user && (
<div className={style.item}> <div className={style.item}>
<Notifications /> <Notifications />
</div> </div>
</div> )}
)} </div>
{is_user && ( {is_user && (
<UserButton user={user} onLogout={authLogout} authOpenProfile={authOpenProfile} /> <UserButton user={user} onLogout={authLogout} authOpenProfile={authOpenProfile} />

View file

@ -89,7 +89,7 @@ export const formatText = (text: string): string =>
.replace(/</g, '&lt;') .replace(/</g, '&lt;')
.replace(/>/g, '&gt;') .replace(/>/g, '&gt;')
.replace( .replace(
/~([\wа-яА-Я\-]+)/giu, /~([\wа-яА-Я-]+)/giu,
'<span class="username" onClick="window.postMessage({ type: \'username\', username: \'$1\'});">~$1</span>' '<span class="username" onClick="window.postMessage({ type: \'username\', username: \'$1\'});">~$1</span>'
) )
.replace(/:\/\//gim, ':|--|') .replace(/:\/\//gim, ':|--|')