mirror of
https://github.com/urbit/shrub.git
synced 2025-01-08 14:09:29 +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>
|
</Row>
|
||||||
<ProfileStatus contact={contact} />
|
<ProfileStatus contact={contact} />
|
||||||
</ProfileControls>
|
</ProfileControls>
|
||||||
<ProfileImages hideCover={hideCover} contact={contact}>
|
<ProfileImages hideCover={hideCover} contact={contact} ship={ship}>
|
||||||
<ProfileHeaderImageEdit
|
<ProfileHeaderImageEdit
|
||||||
contact={contact}
|
contact={contact}
|
||||||
s3={props.s3}
|
s3={props.s3}
|
||||||
|
@ -26,7 +26,7 @@ export function ProfileHeader(props: any): ReactElement {
|
|||||||
|
|
||||||
export function ProfileImages(props: any): ReactElement {
|
export function ProfileImages(props: any): ReactElement {
|
||||||
const { hideAvatars } = useSettingsState(selectCalmState);
|
const { hideAvatars } = useSettingsState(selectCalmState);
|
||||||
const { contact, hideCover } = { ...props };
|
const { contact, hideCover, ship } = { ...props };
|
||||||
const hexColor = contact?.color ? `#${uxToHex(contact.color)}` : '#000000';
|
const hexColor = contact?.color ? `#${uxToHex(contact.color)}` : '#000000';
|
||||||
|
|
||||||
const cover =
|
const cover =
|
||||||
|
@ -33,7 +33,7 @@ export function ViewProfile(props: any) {
|
|||||||
/>
|
/>
|
||||||
<ProfileStatus contact={contact} />
|
<ProfileStatus contact={contact} />
|
||||||
</ProfileControls>
|
</ProfileControls>
|
||||||
<ProfileImages contact={contact} />
|
<ProfileImages contact={contact} ship={ship} />
|
||||||
</ProfileHeader>
|
</ProfileHeader>
|
||||||
<Row pb={2} alignItems='center' width='100%'>
|
<Row pb={2} alignItems='center' width='100%'>
|
||||||
<Center width='100%'>
|
<Center width='100%'>
|
||||||
|
Loading…
Reference in New Issue
Block a user