|
@@ -1,5 +1,5 @@
|
|
|
import React, { useRef, useState } from 'react';
|
|
import React, { useRef, useState } from 'react';
|
|
|
-import { View, Text, Image, StyleSheet, TouchableOpacity, Platform, Share } from 'react-native';
|
|
|
|
|
|
|
+import { View, Text, Image, StyleSheet, TouchableOpacity, Platform, Share, Dimensions } from 'react-native';
|
|
|
import ActionSheet, { SheetManager } from 'react-native-actions-sheet';
|
|
import ActionSheet, { SheetManager } from 'react-native-actions-sheet';
|
|
|
import ShareIcon from '../../../../../assets/icons/share.svg';
|
|
import ShareIcon from '../../../../../assets/icons/share.svg';
|
|
|
import { Colors } from 'src/theme';
|
|
import { Colors } from 'src/theme';
|
|
@@ -11,6 +11,7 @@ import { NAVIGATION_PAGES } from 'src/types';
|
|
|
import { useSubscription } from 'src/screens/OfflineMapsScreen/useSubscription';
|
|
import { useSubscription } from 'src/screens/OfflineMapsScreen/useSubscription';
|
|
|
|
|
|
|
|
const MultipleSeriesModal = () => {
|
|
const MultipleSeriesModal = () => {
|
|
|
|
|
+ const isSmallScreen = Dimensions.get('window').width < 383;
|
|
|
const navigation = useNavigation();
|
|
const navigation = useNavigation();
|
|
|
const { isPremium, loading } = useSubscription();
|
|
const { isPremium, loading } = useSubscription();
|
|
|
const [seriesData, setSeriesData] = useState<any>(null);
|
|
const [seriesData, setSeriesData] = useState<any>(null);
|
|
@@ -157,19 +158,19 @@ const MultipleSeriesModal = () => {
|
|
|
</TouchableOpacity>
|
|
</TouchableOpacity>
|
|
|
)}
|
|
)}
|
|
|
|
|
|
|
|
- <View style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
|
|
|
|
|
|
|
+ <View style={{ flexDirection: 'row', alignItems: 'center', gap: isSmallScreen ? 4 : 8 }}>
|
|
|
<TouchableOpacity
|
|
<TouchableOpacity
|
|
|
onPress={() => handleToggleSeries(item)}
|
|
onPress={() => handleToggleSeries(item)}
|
|
|
- style={[styles.markButton, item.visited === 1 && styles.visitedButton]}
|
|
|
|
|
|
|
+ style={[styles.markButton, isSmallScreen ? { paddingHorizontal: 8 } : {}, item.visited === 1 && styles.visitedButton]}
|
|
|
>
|
|
>
|
|
|
{item.visited === 1 ? (
|
|
{item.visited === 1 ? (
|
|
|
<View style={styles.completedContainer}>
|
|
<View style={styles.completedContainer}>
|
|
|
- <Text style={[styles.calloutButtonText, { color: Colors.DARK_BLUE }]}>
|
|
|
|
|
|
|
+ <Text style={[styles.calloutButtonText, { color: Colors.DARK_BLUE }, isSmallScreen ? { fontSize: getFontSize(12) } : {}]}>
|
|
|
Completed
|
|
Completed
|
|
|
</Text>
|
|
</Text>
|
|
|
</View>
|
|
</View>
|
|
|
) : (
|
|
) : (
|
|
|
- <Text style={styles.calloutButtonText}>To Complete</Text>
|
|
|
|
|
|
|
+ <Text style={[styles.calloutButtonText, isSmallScreen ? { fontSize: getFontSize(12) } : {}]}>To Complete</Text>
|
|
|
)}
|
|
)}
|
|
|
</TouchableOpacity>
|
|
</TouchableOpacity>
|
|
|
|
|
|
|
@@ -241,7 +242,7 @@ const styles = StyleSheet.create({
|
|
|
alignItems: 'center',
|
|
alignItems: 'center',
|
|
|
backgroundColor: Colors.FILL_LIGHT,
|
|
backgroundColor: Colors.FILL_LIGHT,
|
|
|
paddingVertical: 8,
|
|
paddingVertical: 8,
|
|
|
- paddingHorizontal: 12,
|
|
|
|
|
|
|
+ paddingHorizontal: 10,
|
|
|
borderRadius: 8,
|
|
borderRadius: 8,
|
|
|
marginBottom: 6
|
|
marginBottom: 6
|
|
|
},
|
|
},
|