mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
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
|
||||
|
||||
// Empty state component
|
||||
const EmptyDownloadsState: React.FC = () => {
|
||||
const EmptyDownloadsState: React.FC<{ navigation: NavigationProp<RootStackParamList> }> = ({ navigation }) => {
|
||||
const { currentTheme } = useTheme();
|
||||
|
||||
return (
|
||||
|
|
@ -79,7 +79,7 @@ const EmptyDownloadsState: React.FC = () => {
|
|||
<TouchableOpacity
|
||||
style={[styles.exploreButton, { backgroundColor: currentTheme.colors.primary }]}
|
||||
onPress={() => {
|
||||
// Navigate to search or home to find content
|
||||
navigation.navigate('Search');
|
||||
}}
|
||||
>
|
||||
<Text style={[styles.exploreButtonText, { color: currentTheme.colors.background }]}>
|
||||
|
|
@ -567,7 +567,7 @@ const DownloadsScreen: React.FC = () => {
|
|||
|
||||
{/* Content */}
|
||||
{downloads.length === 0 ? (
|
||||
<EmptyDownloadsState />
|
||||
<EmptyDownloadsState navigation={navigation} />
|
||||
) : (
|
||||
<FlatList
|
||||
data={filteredDownloads}
|
||||
|
|
|
|||
|
|
@ -581,7 +581,7 @@ const SettingsScreen: React.FC = () => {
|
|||
isTablet={isTablet}
|
||||
/>
|
||||
<SettingItem
|
||||
title="Enable Downloads"
|
||||
title="Enable Downloads (Beta)"
|
||||
description="Show Downloads tab and enable saving streams"
|
||||
icon="download"
|
||||
renderControl={() => (
|
||||
|
|
|
|||
1
toastify-react-native
Submodule
1
toastify-react-native
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 17a44eb5d18612611cc9b0eca269101ddbf0311b
|
||||
Loading…
Reference in a new issue