diff --git a/app/components/NothingHere.tsx b/app/components/NothingHere.tsx new file mode 100644 index 0000000..8d0ecda --- /dev/null +++ b/app/components/NothingHere.tsx @@ -0,0 +1,33 @@ +import font from '@app/styles/font' +import React from 'react' +import { Text, View, StyleSheet } from 'react-native' +import Icon from 'react-native-vector-icons/MaterialCommunityIcons' + +const NothingHere = React.memo<{ + height?: number + width?: number +}>(({ height, width }) => { + height = height || 200 + width = width || 200 + + return ( + + + Nothing here... + + ) +}) + +const styles = StyleSheet.create({ + container: { + justifyContent: 'center', + alignItems: 'center', + opacity: 0.25, + }, + text: { + fontFamily: font.lightItalic, + color: 'white', + }, +}) + +export default NothingHere diff --git a/app/components/SongItem.tsx b/app/components/SongItem.tsx index dee9357..dc9c4b9 100644 --- a/app/components/SongItem.tsx +++ b/app/components/SongItem.tsx @@ -6,7 +6,6 @@ import { useAtomValue } from 'jotai/utils' import React from 'react' import { GestureResponderEvent, StyleSheet, Text, View } from 'react-native' import IconFA from 'react-native-vector-icons/FontAwesome' -import IconMat from 'react-native-vector-icons/MaterialIcons' import CoverArt from './CoverArt' import PressableOpacity from './PressableOpacity' @@ -33,10 +32,7 @@ const SongItem: React.FC<{ - - - - + @@ -76,7 +72,7 @@ const styles = StyleSheet.create({ controls: { flexDirection: 'row', alignItems: 'center', - marginLeft: 10, + marginLeft: 16, }, more: { marginLeft: 8, diff --git a/app/screens/AlbumView.tsx b/app/screens/AlbumView.tsx index 914e97b..bd7505b 100644 --- a/app/screens/AlbumView.tsx +++ b/app/screens/AlbumView.tsx @@ -2,6 +2,7 @@ import Button from '@app/components/Button' import CoverArt from '@app/components/CoverArt' import GradientBackground from '@app/components/GradientBackground' import ImageGradientScrollView from '@app/components/ImageGradientScrollView' +import NothingHere from '@app/components/NothingHere' import SongItem from '@app/components/SongItem' import { albumAtomFamily } from '@app/state/music' import { useSetQueue } from '@app/state/trackplayer' @@ -22,6 +23,27 @@ const AlbumDetails: React.FC<{ return <> } + const Songs = () => ( + <> + +