mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
renamend profile to profile_owner
This commit is contained in:
parent
9f3e8758ad
commit
d93ea6e5c1
@ -68,11 +68,11 @@ export function OverlayItemProfile({ userType }: { userType: string }) {
|
|||||||
scroll();
|
scroll();
|
||||||
}, [addItemPopupType])
|
}, [addItemPopupType])
|
||||||
|
|
||||||
const [profile, setProfile] = useState<Item>();
|
const [profile_owner, setProfileOwner] = useState<Item>();
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setProfile(items.find(i => (i.user_created?.id === item.user_created?.id) && i.layer?.itemType.name === userType));
|
setProfileOwner(items.find(i => (i.user_created?.id === item.user_created?.id) && i.layer?.itemType.name === userType));
|
||||||
}, [item, items])
|
}, [item, items])
|
||||||
|
|
||||||
|
|
||||||
@ -312,7 +312,7 @@ export function OverlayItemProfile({ userType }: { userType: string }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{item.user_created.first_name && (
|
{item.user_created.first_name && (
|
||||||
<ContactInfo link={`/item/${profile?.id}`} name={profile?.name ? profile.name : item.user_created.first_name} avatar={profile?.image ? profile.image : item.user_created.avatar} email={item.contact} telephone={item.telephone} />
|
<ContactInfo link={`/item/${profile_owner?.id}`} name={profile_owner?.name ? profile_owner.name : item.user_created.first_name} avatar={profile_owner?.image ? profile_owner.image : item.user_created.avatar} email={item.contact} telephone={item.telephone} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Description Section */}
|
{/* Description Section */}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user