Front: Dark mode (#157)

This commit is contained in:
Arthur Jamet
2023-02-19 10:02:57 +00:00
committed by GitHub
parent 144d9bec5f
commit f5770cd104
22 changed files with 266 additions and 233 deletions
+6 -3
View File
@@ -3,6 +3,7 @@ import { Dimensions, View } from 'react-native';
import { Box, Image, Heading, HStack, Card, Button, Spacer, Text } from 'native-base';
import Translate from '../components/Translate';
import { useNavigation } from '@react-navigation/native';
import TextButton from '../components/TextButton';
const UserMedals = () => {
return (
@@ -87,9 +88,11 @@ const ProfileView = () => {
<UserMedals/>
<PlayerStats/>
<Box w="10%" paddingY={10} paddingLeft={5} paddingRight={50} zIndex={1}>
<Button onPress={() => navigation.navigate('Settings')} style={{margin: 10}}>
<Translate translationKey='settingsBtn'/>
</Button>
<TextButton
onPress={() => navigation.navigate('Settings')}
style={{margin: 10}}
translate={{ translationKey: 'settingsBtn' }}
/>
</Box>
</View>
);