mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
serach debouncing, hiding result categories
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { AlbumListItem, Artist, PlaylistListItem, Song } from '@app/models/music'
|
||||
import { ListableItem } from '@app/models/music'
|
||||
import { currentTrackAtom } from '@app/state/trackplayer'
|
||||
import colors from '@app/styles/colors'
|
||||
import font from '@app/styles/font'
|
||||
@@ -37,7 +37,7 @@ const TitleText = React.memo<{
|
||||
})
|
||||
|
||||
const ListItem: React.FC<{
|
||||
item: Song | AlbumListItem | Artist | PlaylistListItem
|
||||
item: ListableItem
|
||||
onPress?: (event: GestureResponderEvent) => void
|
||||
showArt?: boolean
|
||||
showStar?: boolean
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
import font from '@app/styles/font'
|
||||
import React from 'react'
|
||||
import { Text, View, StyleSheet } from 'react-native'
|
||||
import { Text, View, StyleSheet, ViewStyle } from 'react-native'
|
||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
|
||||
|
||||
const NothingHere = React.memo<{
|
||||
height?: number
|
||||
width?: number
|
||||
}>(({ height, width }) => {
|
||||
style?: ViewStyle
|
||||
}>(({ height, width, style }) => {
|
||||
height = height || 200
|
||||
width = width || 200
|
||||
|
||||
return (
|
||||
<View style={[styles.container, { height, width }]}>
|
||||
<View style={[styles.container, { height, width }, style]}>
|
||||
<Icon name="music-rest-quarter" color={styles.text.color} size={width / 2} />
|
||||
<Text style={[styles.text, { fontSize: width / 8 }]}>Nothing here...</Text>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user