File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
src/screens/components/common Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 22 * Created by leon<[email protected] > on 22/04/06. 33 */
44import { Text } from '@src/components'
5- import { ITheme , useTheme } from '@src/theme'
65import { 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'
710import React from 'react'
811import {
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
You can’t perform that action at this time.
0 commit comments