mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
links: pass contact metadata to link items
This commit is contained in:
parent
487aa501c6
commit
08c228739a
@ -40,7 +40,7 @@ export const LinkList = (props) => {
|
|||||||
</div>
|
</div>
|
||||||
<div className={
|
<div className={
|
||||||
'pl4 pt2 flex relative overflow-x-scroll' +
|
'pl4 pt2 flex relative overflow-x-scroll' +
|
||||||
'overflow-x-auto-l overflow-x-auto-xl flex-shrink-0' +
|
'overflow-x-auto-l overflow-x-auto-xl flex-shrink-0' +
|
||||||
'bb b--gray4 b--gray1-d bg-gray0-d'
|
'bb b--gray4 b--gray1-d bg-gray0-d'
|
||||||
}
|
}
|
||||||
style={{ height: 48 }}>
|
style={{ height: 48 }}>
|
||||||
@ -71,10 +71,10 @@ export const LinkList = (props) => {
|
|||||||
</div>
|
</div>
|
||||||
{ Array.from(props.graph).map(([date, node]) => {
|
{ Array.from(props.graph).map(([date, node]) => {
|
||||||
const { nickname, color, avatar } =
|
const { nickname, color, avatar } =
|
||||||
getContactDetails(props.contacts[ship]);
|
getContactDetails(props.contacts[node?.post?.author]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<LinkItem
|
<LinkItem
|
||||||
|
key={date}
|
||||||
resource={resource}
|
resource={resource}
|
||||||
node={node}
|
node={node}
|
||||||
nickname={nickname}
|
nickname={nickname}
|
||||||
|
Loading…
Reference in New Issue
Block a user