profile: pass ship to image

This commit is contained in:
Matilde Park 2021-03-04 14:21:17 -05:00
parent a7cac7b9bc
commit 20e45648f4
3 changed files with 3 additions and 3 deletions

View File

@ -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}

View File

@ -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 =

View File

@ -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%'>