ui changes
This commit is contained in:
parent
1a9d59e804
commit
92441110bf
4 changed files with 6 additions and 4 deletions
1
react-native-toast-message
Submodule
1
react-native-toast-message
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e2db539be40ab3caeef8de3725d5017474f71679
|
||||||
|
|
@ -58,7 +58,7 @@ const optimizePosterUrl = (poster: string | undefined | null): string => {
|
||||||
// Download items come from DownloadsContext
|
// Download items come from DownloadsContext
|
||||||
|
|
||||||
// Empty state component
|
// Empty state component
|
||||||
const EmptyDownloadsState: React.FC = () => {
|
const EmptyDownloadsState: React.FC<{ navigation: NavigationProp<RootStackParamList> }> = ({ navigation }) => {
|
||||||
const { currentTheme } = useTheme();
|
const { currentTheme } = useTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -79,7 +79,7 @@ const EmptyDownloadsState: React.FC = () => {
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={[styles.exploreButton, { backgroundColor: currentTheme.colors.primary }]}
|
style={[styles.exploreButton, { backgroundColor: currentTheme.colors.primary }]}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
// Navigate to search or home to find content
|
navigation.navigate('Search');
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text style={[styles.exploreButtonText, { color: currentTheme.colors.background }]}>
|
<Text style={[styles.exploreButtonText, { color: currentTheme.colors.background }]}>
|
||||||
|
|
@ -567,7 +567,7 @@ const DownloadsScreen: React.FC = () => {
|
||||||
|
|
||||||
{/* Content */}
|
{/* Content */}
|
||||||
{downloads.length === 0 ? (
|
{downloads.length === 0 ? (
|
||||||
<EmptyDownloadsState />
|
<EmptyDownloadsState navigation={navigation} />
|
||||||
) : (
|
) : (
|
||||||
<FlatList
|
<FlatList
|
||||||
data={filteredDownloads}
|
data={filteredDownloads}
|
||||||
|
|
|
||||||
|
|
@ -581,7 +581,7 @@ const SettingsScreen: React.FC = () => {
|
||||||
isTablet={isTablet}
|
isTablet={isTablet}
|
||||||
/>
|
/>
|
||||||
<SettingItem
|
<SettingItem
|
||||||
title="Enable Downloads"
|
title="Enable Downloads (Beta)"
|
||||||
description="Show Downloads tab and enable saving streams"
|
description="Show Downloads tab and enable saving streams"
|
||||||
icon="download"
|
icon="download"
|
||||||
renderControl={() => (
|
renderControl={() => (
|
||||||
|
|
|
||||||
1
toastify-react-native
Submodule
1
toastify-react-native
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 17a44eb5d18612611cc9b0eca269101ddbf0311b
|
||||||
Loading…
Reference in a new issue