Skip to content

Commit ab92c83

Browse files
committed
hide instead of show
1 parent 78024a4 commit ab92c83

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/mobile/src/components/core/SectionList.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,20 @@ export const SectionList = forwardRef(function SectionList<
126126
SectionT = DefaultSectionT
127127
>(
128128
props: Animated.AnimatedProps<RNSectionListProps<ItemT, SectionT>> & {
129-
shouldShowPlayBarChin?: boolean
129+
hidePlayBarChin?: boolean
130130
},
131131
ref: Ref<RNSectionList<ItemT, SectionT>>
132132
) {
133-
const { ListFooterComponent, shouldShowPlayBarChin, ...other } = props
133+
const { ListFooterComponent, hidePlayBarChin, ...other } = props
134134

135135
const FooterComponent = ListFooterComponent ? (
136136
<>
137137
{ListFooterComponent}
138-
{shouldShowPlayBarChin ? <PlayBarChin /> : null}
138+
{hidePlayBarChin ? null : <PlayBarChin />}
139139
</>
140-
) : shouldShowPlayBarChin ? (
140+
) : hidePlayBarChin ? null : (
141141
<PlayBarChin />
142-
) : null
142+
)
143143

144144
const sectionListProps = {
145145
...other,

packages/mobile/src/components/lineup/TanQueryLineup.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export type LineupProps = {
300300
/**
301301
* Whether to show the play bar chin
302302
*/
303-
shouldShowPlayBarChin?: boolean
303+
hidePlayBarChin?: boolean
304304

305305
// Tan query props
306306
pageSize: number
@@ -355,7 +355,7 @@ export const TanQueryLineup = ({
355355
isPending,
356356
queryData = [],
357357
maxEntries = Infinity,
358-
shouldShowPlayBarChin = true,
358+
hidePlayBarChin = false,
359359
...listProps
360360
}: LineupProps) => {
361361
const debouncedLoadNextPage = useDebouncedCallback(
@@ -526,7 +526,7 @@ export const TanQueryLineup = ({
526526
onScroll={handleScroll}
527527
ListHeaderComponent={hideHeaderOnEmpty && isEmpty ? undefined : header}
528528
ListFooterComponent={lineup.hasMore ? null : ListFooterComponent}
529-
shouldShowPlayBarChin={shouldShowPlayBarChin}
529+
hidePlayBarChin={true}
530530
ListEmptyComponent={LineupEmptyComponent}
531531
onEndReached={handleEndReached}
532532
onEndReachedThreshold={LOAD_MORE_THRESHOLD}

packages/mobile/src/screens/track-screen/TrackScreenLineup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const TrackScreenLineup = ({
8585
hasMore={false}
8686
isPending={isPending}
8787
queryData={data}
88-
shouldShowPlayBarChin={false}
88+
hidePlayBarChin={true}
8989
/>
9090
{parentTrackId ? (
9191
<ViewOtherRemixesButton parentTrackId={parentTrackId} />

0 commit comments

Comments
 (0)