Skip to content

Commit

Permalink
(PC-34249) fix(HorizontalOfferTile): flex was remove on refacto on Ho…
Browse files Browse the repository at this point in the history
…rizontalTile so now is missing (#7588)
  • Loading branch information
yleclercq-pass authored Jan 28, 2025
1 parent 3150ecc commit 588ea2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ui/components/tiles/HorizontalOfferTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const HorizontalOfferTile = ({
enableNavigate={!!offerId}
from={analyticsParams.from}
style={style}>
<HorizontalTile {...horizontalTileProps} categoryId={categoryId} imageUrl={thumbUrl}>
<StyledHorizontalTile {...horizontalTileProps} categoryId={categoryId} imageUrl={thumbUrl}>
<Row flex={1} gap={getSpacing(4)} alignItems="space-between">
<Column flex={1}>
{distanceToOffer ? (
Expand All @@ -146,11 +146,15 @@ export const HorizontalOfferTile = ({
</Column>
{distanceToOffer ? <DistanceTag label={${distanceToOffer}`} /> : null}
</Row>
</HorizontalTile>
</StyledHorizontalTile>
</Container>
)
}

const StyledHorizontalTile = styled(HorizontalTile)({
flex: 1,
})

const Container = styled(InternalTouchableLink)({
flexDirection: 'row',
alignItems: 'center',
Expand Down

0 comments on commit 588ea2a

Please sign in to comment.