mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 18:21:34 +03:00
publish: restore nicknames in note interface
This commit is contained in:
parent
11aaeaa289
commit
adb91f19b8
@ -17,10 +17,9 @@ interface AuthorProps {
|
|||||||
|
|
||||||
export function Author(props: AuthorProps) {
|
export function Author(props: AuthorProps) {
|
||||||
const { contacts, ship = '', date, showImage } = props;
|
const { contacts, ship = '', date, showImage } = props;
|
||||||
const noSig = ship.slice(1);
|
|
||||||
let contact = null;
|
let contact = null;
|
||||||
if (contacts) {
|
if (contacts) {
|
||||||
contact = noSig in contacts ? contacts[noSig] : null;
|
contact = ship in contacts ? contacts[ship] : null;
|
||||||
}
|
}
|
||||||
const color = contact?.color ? `#${uxToHex(contact?.color)}` : "#000000";
|
const color = contact?.color ? `#${uxToHex(contact?.color)}` : "#000000";
|
||||||
const showAvatar = !props.hideAvatars && contact?.avatar;
|
const showAvatar = !props.hideAvatars && contact?.avatar;
|
||||||
|
Loading…
Reference in New Issue
Block a user