Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
[PAY-1639] Fix mobile hidden track dog ear (#3764)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored Jul 18, 2023
1 parent 40ea57e commit b627216
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/mobile/src/components/details-tile/DetailsTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export const DetailsTile = ({
isPlayable = true,
isPlaylist = false,
isPublished = true,
isUnlisted = false,
onPressEdit,
onPressFavorites,
onPressOverflow,
Expand Down Expand Up @@ -231,7 +232,8 @@ export const DetailsTile = ({
const renderDogEar = () => {
const dogEarType = getDogEarType({
isOwner,
premiumConditions
premiumConditions,
isUnlisted
})
return dogEarType ? <DogEar type={dogEarType} /> : null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ const useStyles = makeStyles(({ palette, spacing, typography }) => ({
...flexRowCentered(),
justifyContent: 'space-between',
marginHorizontal: spacing(2),
marginVertical: spacing(1),
backgroundColor: palette.accentGreen
marginVertical: spacing(1)
},
title: {
fontFamily: typography.fontByWeight.heavy,
Expand Down
3 changes: 3 additions & 0 deletions packages/mobile/src/components/details-tile/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export type DetailsTileProps = {
/** Is the item loaded published */
isPublished?: boolean

/** Is the item unlisted (hidden) */
isUnlisted?: boolean

/** Function to call when the edit button is pressed */
onPressEdit?: GestureResponderHandler

Expand Down
3 changes: 2 additions & 1 deletion packages/mobile/src/components/lineup-tile/LineupTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export const LineupTile = ({
premiumConditions,
isOwner,
doesUserHaveAccess,
isArtistPick: showArtistPick && isArtistPick
isArtistPick: showArtistPick && isArtistPick,
isUnlisted
})

const handlePress = useCallback(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ export const TrackScreenDetailsTile = ({
hideListenCount={is_unlisted && !field_visibility?.play_count}
hideRepostCount={is_unlisted}
isPlaying={isPlaying && isPlayingId}
isUnlisted={is_unlisted}
onPressFavorites={handlePressFavorites}
onPressOverflow={handlePressOverflow}
onPressPlay={handlePressPlay}
Expand Down

0 comments on commit b627216

Please sign in to comment.