File tree Expand file tree Collapse file tree 1 file changed +20
-17
lines changed
src/containers/Settings/Tab Expand file tree Collapse file tree 1 file changed +20
-17
lines changed Original file line number Diff line number Diff line change 11import { t } from "i18next" ;
22import { StyleSheet , TextInput , TouchableOpacity , View } from "react-native" ;
33import Text from "../../../components/Text" ;
4+ import { IN_GAME } from "../../../constants/app" ;
45import { useSettings } from "../../../states/settings" ;
56import { useTheme } from "../../../states/theme" ;
67import {
@@ -21,24 +22,26 @@ const Advanced = () => {
2122 flex : 1 ,
2223 } }
2324 >
24- < View >
25- < Text semibold color = { theme . textPrimary } size = { 2 } >
26- { t ( "settings_custom_game_exe_label" ) } :
27- </ Text >
28- < View style = { styles . pathInputContainer } >
29- < TextInput
30- value = { customGameExe }
31- onChangeText = { ( text ) => setCustomGameExe ( text ) }
32- style = { [
33- styles . pathInput ,
34- {
35- color : theme . textPrimary ,
36- backgroundColor : theme . textInputBackgroundColor ,
37- } ,
38- ] }
39- />
25+ { ! IN_GAME && (
26+ < View >
27+ < Text semibold color = { theme . textPrimary } size = { 2 } >
28+ { t ( "settings_custom_game_exe_label" ) } :
29+ </ Text >
30+ < View style = { styles . pathInputContainer } >
31+ < TextInput
32+ value = { customGameExe }
33+ onChangeText = { ( text ) => setCustomGameExe ( text ) }
34+ style = { [
35+ styles . pathInput ,
36+ {
37+ color : theme . textPrimary ,
38+ backgroundColor : theme . textInputBackgroundColor ,
39+ } ,
40+ ] }
41+ />
42+ </ View >
4043 </ View >
41- </ View >
44+ ) }
4245 < View style = { { flex : 1 } } />
4346 < View
4447 style = { {
You can’t perform that action at this time.
0 commit comments