|
@@ -39,33 +39,47 @@ const StatisticsScreen = () => {
|
|
<Header label={'Statistics'} />
|
|
<Header label={'Statistics'} />
|
|
<View style={{ gap: 20 }}>
|
|
<View style={{ gap: 20 }}>
|
|
{routes.map((route, i) => {
|
|
{routes.map((route, i) => {
|
|
|
|
+ let name = route.title;
|
|
|
|
+ let subname: string = '';
|
|
|
|
+
|
|
|
|
+ if (route.title.startsWith('NOMADS STATISTICS')) {
|
|
|
|
+ name = route.title.replace(/<[^>]*>/g, '!');
|
|
|
|
+
|
|
|
|
+ const split = name.split('!');
|
|
|
|
+
|
|
|
|
+ name = split[0];
|
|
|
|
+ subname = split[2];
|
|
|
|
+ }
|
|
|
|
+
|
|
return (
|
|
return (
|
|
<View>
|
|
<View>
|
|
<TouchableOpacity
|
|
<TouchableOpacity
|
|
- onPress={() => {
|
|
|
|
- if (route.title === 'NOMADS STATISTICS')
|
|
|
|
- navigation.navigate(NAVIGATION_PAGES.NOMADS_STATISTICS, {
|
|
|
|
- ...route
|
|
|
|
- });
|
|
|
|
- else setIndex(index === i ? null : i);
|
|
|
|
- }}
|
|
|
|
|
|
+ onPress={() => setIndex(index === i ? null : i)}
|
|
style={{
|
|
style={{
|
|
display: 'flex',
|
|
display: 'flex',
|
|
flexDirection: 'row',
|
|
flexDirection: 'row',
|
|
- justifyContent: 'space-between'
|
|
|
|
|
|
+ justifyContent: 'space-between',
|
|
|
|
+ alignItems: 'center'
|
|
}}
|
|
}}
|
|
>
|
|
>
|
|
- <Text
|
|
|
|
- style={[
|
|
|
|
- {
|
|
|
|
- fontSize: getFontSize(16),
|
|
|
|
- color: 'rgba(237, 147, 52, 1)',
|
|
|
|
- fontWeight: '700'
|
|
|
|
- }
|
|
|
|
- ]}
|
|
|
|
- >
|
|
|
|
- {route.title}
|
|
|
|
- </Text>
|
|
|
|
|
|
+ <View>
|
|
|
|
+ <Text
|
|
|
|
+ style={[
|
|
|
|
+ {
|
|
|
|
+ fontSize: getFontSize(16),
|
|
|
|
+ color: 'rgba(237, 147, 52, 1)',
|
|
|
|
+ fontWeight: '700'
|
|
|
|
+ }
|
|
|
|
+ ]}
|
|
|
|
+ >
|
|
|
|
+ {route.title && name}
|
|
|
|
+ </Text>
|
|
|
|
+ {subname && (
|
|
|
|
+ <Text style={{ color: Colors.DARK_BLUE, fontWeight: '700' }}>
|
|
|
|
+ {subname}
|
|
|
|
+ </Text>
|
|
|
|
+ )}
|
|
|
|
+ </View>
|
|
<View style={index === i ? { transform: 'rotate(180deg)' } : {}}>
|
|
<View style={index === i ? { transform: 'rotate(180deg)' } : {}}>
|
|
<ArrowIcon height={18} width={18} stroke={'#B7C6CB'} />
|
|
<ArrowIcon height={18} width={18} stroke={'#B7C6CB'} />
|
|
</View>
|
|
</View>
|
|
@@ -79,7 +93,8 @@ const StatisticsScreen = () => {
|
|
navigation.navigate(NAVIGATION_PAGES.STATISTICS_LIST_DATA, {
|
|
navigation.navigate(NAVIGATION_PAGES.STATISTICS_LIST_DATA, {
|
|
title: item.name,
|
|
title: item.name,
|
|
type: route.title,
|
|
type: route.title,
|
|
- url1: item.url1
|
|
|
|
|
|
+ url1: item.url1,
|
|
|
|
+ url2: item.url2
|
|
})
|
|
})
|
|
}
|
|
}
|
|
>
|
|
>
|