1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +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,7 +60,6 @@ const HeaderUnconnected: FC<IProps> = memo(
<Filler />
{is_user && (
<div className={style.plugs}>
<Link className={style.item} to={URLS.BASE}>
ФЛОУ
@ -69,12 +68,12 @@ const HeaderUnconnected: FC<IProps> = memo(
<Link className={style.item} to={URLS.BORIS}>
БОРИС
</Link>
{is_user && (
<div className={style.item}>
<Notifications />
</div>
</div>
)}
</div>
{is_user && (
<UserButton user={user} onLogout={authLogout} authOpenProfile={authOpenProfile} />

View file

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