Skip to content

Commit 52f1917

Browse files
committed
feat: add nativation stat screen event to footer
1 parent 9044d40 commit 52f1917

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/screens/components/common/General.tsx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
* Created by leon<[email protected]> on 22/04/06.
33
*/
44
import { Text } from '@src/components'
5-
import { ITheme, useTheme } from '@src/theme'
65
import { useAppSelector } from '@src/hooks'
6+
import { translate } from '@src/i18n'
7+
import { NavigationService, ROUTES } from '@src/navigation'
8+
import { ITheme, useTheme } from '@src/theme'
9+
import { IState } from '@src/types'
710
import React from 'react'
811
import {
912
Image,
10-
View,
1113
ImageSourcePropType,
1214
ImageStyle,
15+
Pressable,
16+
StyleProp,
1317
TextStyle,
1418
TouchableOpacity,
15-
ViewStyle,
16-
Pressable,
17-
StyleProp
19+
View,
20+
ViewStyle
1821
} from 'react-native'
19-
import { IState } from '@src/types'
20-
import { translate } from '@src/i18n'
21-
import { ViewProps } from 'react-native'
2222

2323
/**
2424
* TextWithIconPress props
@@ -118,14 +118,18 @@ const Footer = () => {
118118
const app = useAppSelector((_state: IState.State) => _state.app)
119119

120120
return (
121-
<View style={styles.footer(theme)}>
121+
<TouchableOpacity
122+
onPress={() => {
123+
NavigationService.navigate(ROUTES.SiteStat)
124+
}}
125+
style={styles.footer(theme)}>
122126
<Text style={styles.footerItem(theme)}>
123127
{translate('brand.name')} {app.version.version}({app.version.buildId})
124128
</Text>
125129
<Text style={styles.footerItem(theme)}>
126130
{app.siteInfo?.title} - {app.siteInfo?.description}
127131
</Text>
128-
</View>
132+
</TouchableOpacity>
129133
)
130134
}
131135

0 commit comments

Comments
 (0)