Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions packages/mobile/src/components/core/SectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,20 @@ export const SectionList = forwardRef(function SectionList<
ItemT,
SectionT = DefaultSectionT
>(
props: Animated.AnimatedProps<RNSectionListProps<ItemT, SectionT>>,
props: Animated.AnimatedProps<RNSectionListProps<ItemT, SectionT>> & {
hidePlayBarChin?: boolean
},
ref: Ref<RNSectionList<ItemT, SectionT>>
) {
const { ListFooterComponent, ...other } = props
const { ListFooterComponent, hidePlayBarChin, ...other } = props

const FooterComponent = ListFooterComponent ? (
<>
{ListFooterComponent}
<PlayBarChin />
{hidePlayBarChin ? null : <PlayBarChin />}
</>
) : (
PlayBarChin
) : hidePlayBarChin ? null : (
<PlayBarChin />
)

const sectionListProps = {
Expand Down
7 changes: 7 additions & 0 deletions packages/mobile/src/components/lineup/TanQueryLineup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ export type LineupProps = {
*/
itemStyles?: ViewStyle

/**
* Whether to show the play bar chin
*/
hidePlayBarChin?: boolean

// Tan query props
pageSize: number
initialPageSize?: number
Expand Down Expand Up @@ -350,6 +355,7 @@ export const TanQueryLineup = ({
isPending,
queryData = [],
maxEntries = Infinity,
hidePlayBarChin = false,
...listProps
}: LineupProps) => {
const debouncedLoadNextPage = useDebouncedCallback(
Expand Down Expand Up @@ -520,6 +526,7 @@ export const TanQueryLineup = ({
onScroll={handleScroll}
ListHeaderComponent={hideHeaderOnEmpty && isEmpty ? undefined : header}
ListFooterComponent={lineup.hasMore ? null : ListFooterComponent}
hidePlayBarChin={true}
ListEmptyComponent={LineupEmptyComponent}
onEndReached={handleEndReached}
onEndReachedThreshold={LOAD_MORE_THRESHOLD}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const TrackScreenLineup = ({
hasMore={false}
isPending={isPending}
queryData={data}
hidePlayBarChin={true}
/>
{parentTrackId ? (
<ViewOtherRemixesButton parentTrackId={parentTrackId} />
Expand Down