mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-13 20:04:35 +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) {
|
||||
const { contacts, ship = '', date, showImage } = props;
|
||||
const noSig = ship.slice(1);
|
||||
let contact = null;
|
||||
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 showAvatar = !props.hideAvatars && contact?.avatar;
|
||||
|
Loading…
Reference in New Issue
Block a user