mirror of
https://github.com/urbit/shrub.git
synced 2025-01-06 04:07:23 +03:00
profile: pass ship to image
This commit is contained in:
parent
a7cac7b9bc
commit
20e45648f4
@ -176,7 +176,7 @@ export function EditProfile(props: any): ReactElement {
|
||||
</Row>
|
||||
<ProfileStatus contact={contact} />
|
||||
</ProfileControls>
|
||||
<ProfileImages hideCover={hideCover} contact={contact}>
|
||||
<ProfileImages hideCover={hideCover} contact={contact} ship={ship}>
|
||||
<ProfileHeaderImageEdit
|
||||
contact={contact}
|
||||
s3={props.s3}
|
||||
|
@ -26,7 +26,7 @@ export function ProfileHeader(props: any): ReactElement {
|
||||
|
||||
export function ProfileImages(props: any): ReactElement {
|
||||
const { hideAvatars } = useSettingsState(selectCalmState);
|
||||
const { contact, hideCover } = { ...props };
|
||||
const { contact, hideCover, ship } = { ...props };
|
||||
const hexColor = contact?.color ? `#${uxToHex(contact.color)}` : '#000000';
|
||||
|
||||
const cover =
|
||||
|
@ -33,7 +33,7 @@ export function ViewProfile(props: any) {
|
||||
/>
|
||||
<ProfileStatus contact={contact} />
|
||||
</ProfileControls>
|
||||
<ProfileImages contact={contact} />
|
||||
<ProfileImages contact={contact} ship={ship} />
|
||||
</ProfileHeader>
|
||||
<Row pb={2} alignItems='center' width='100%'>
|
||||
<Center width='100%'>
|
||||
|
Loading…
Reference in New Issue
Block a user