mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-20 21:08:52 +01:00
Forgot to emojify again
This is getting ridiculous
This commit is contained in:
parent
e0bab6c70a
commit
7e9b6f681f
1 changed files with 9 additions and 2 deletions
|
@ -3,6 +3,7 @@ import { useParams } from 'react-router-dom';
|
||||||
import { useSnapshot } from 'valtio';
|
import { useSnapshot } from 'valtio';
|
||||||
|
|
||||||
import Timeline from '../components/timeline';
|
import Timeline from '../components/timeline';
|
||||||
|
import emojifyText from '../utils/emojify-text';
|
||||||
import states from '../utils/states';
|
import states from '../utils/states';
|
||||||
import useTitle from '../utils/useTitle';
|
import useTitle from '../utils/useTitle';
|
||||||
|
|
||||||
|
@ -35,6 +36,8 @@ function AccountStatuses() {
|
||||||
})();
|
})();
|
||||||
}, [id]);
|
}, [id]);
|
||||||
|
|
||||||
|
const { displayName, acct, emojis } = account;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Timeline
|
<Timeline
|
||||||
key={id}
|
key={id}
|
||||||
|
@ -46,9 +49,13 @@ function AccountStatuses() {
|
||||||
states.showAccount = account;
|
states.showAccount = account;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{account?.displayName}
|
<b
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: emojifyText(displayName, emojis),
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<div>
|
<div>
|
||||||
<span>@{account?.acct}</span>
|
<span>@{acct}</span>
|
||||||
</div>
|
</div>
|
||||||
</h1>
|
</h1>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue