mirror of
https://github.com/urbit/shrub.git
synced 2024-12-24 11:24:21 +03:00
Merge pull request #4604 from urbit/mp/hark/calm
hark-fe: use calmengine for nickname render
This commit is contained in:
commit
c27b30e29d
@ -21,7 +21,7 @@ function Author(props: { patp: string; last?: boolean }): ReactElement {
|
|||||||
const contact: Contact | undefined = contacts?.[`~${props.patp}`];
|
const contact: Contact | undefined = contacts?.[`~${props.patp}`];
|
||||||
|
|
||||||
const showNickname = useShowNickname(contact);
|
const showNickname = useShowNickname(contact);
|
||||||
const name = contact?.nickname || `~${props.patp}`;
|
const name = showNickname ? contact.nickname : `~${props.patp}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Text mono={!showNickname}>
|
<Text mono={!showNickname}>
|
||||||
|
Loading…
Reference in New Issue
Block a user