Skip to content

Commit

Permalink
fix: Partner list item initial placement (#9068)
Browse files Browse the repository at this point in the history
* chore: Enable AREnableShowsForYouLocation feature flag

* fix: Partner list item initial placement
  • Loading branch information
olerichter00 authored Jul 27, 2023
1 parent ad404d1 commit 41c2fa7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions src/app/Scenes/GalleriesForYou/Components/PartnerListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,24 @@ export const PartnerListItem: React.FC<PartnerListItemProps> = ({
<Flex mx={2}>
<Touchable onPress={handlePress}>
<Flex width={width} mx="auto">
<OpaqueImageView imageURL={imageUrl} aspectRatio={1.33} width={width} />

{!!showInitials && (
<Flex
position="absolute"
top={0}
left={0}
width="100%"
height="100%"
justifyContent="center"
>
<Flex mx="auto">
<Text variant="lg-display">{initials}</Text>
<Flex>
<OpaqueImageView imageURL={imageUrl} aspectRatio={1.33} width={width} />

{!!showInitials && (
<Flex
position="absolute"
top={0}
left={0}
width="100%"
height="100%"
justifyContent="center"
>
<Flex mx="auto">
<Text variant="lg-display">{initials}</Text>
</Flex>
</Flex>
</Flex>
)}
)}
</Flex>

<Flex mt={0.5} justifyContent="space-between" flexDirection="row">
<Flex mr={1} flexShrink={1}>
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/config/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const features: { [key: string]: FeatureDescriptor } = {
},
AREnableShowsForYouLocation: {
description: "Enable Shows For You Location",
readyForRelease: false,
readyForRelease: true,
showInDevMenu: true,
echoFlagKey: "AREnableShowsForYouLocation",
},
Expand Down

0 comments on commit 41c2fa7

Please sign in to comment.