parent
0adc05c2f7
commit
625a91d262
@ -1,16 +0,0 @@
|
||||
import { FC} from "react"
|
||||
import { Pressable, Text} from "react-native"
|
||||
import React from "react"
|
||||
import styles from "./style/ButtonChangeSkin.style"
|
||||
|
||||
export const ButtonChangeSkin:
|
||||
FC<{ onPress: any;}>
|
||||
=
|
||||
({onPress}) =>
|
||||
{
|
||||
return (
|
||||
<Pressable style={styles.button} onPress={onPress}>
|
||||
<Text style={styles.text}>Changer de skin</Text>
|
||||
</Pressable>
|
||||
);
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
import { FC} from "react"
|
||||
import { Pressable, Text} from "react-native"
|
||||
import React from "react"
|
||||
import styles from "./style/ButtonGreySmall"
|
||||
|
||||
export const ButtonGreySmall:
|
||||
FC<{ onPress: any, title: String, state?: String;}>
|
||||
=
|
||||
({onPress, title, state}) =>
|
||||
{
|
||||
switch (state) {
|
||||
case 'Profile':
|
||||
return(
|
||||
<Pressable style={styles.buttonProfile} onPress={onPress}>
|
||||
<Text style={styles.text}>{title}</Text>
|
||||
</Pressable>
|
||||
);
|
||||
|
||||
default:
|
||||
return(
|
||||
<Pressable style={styles.button} onPress={onPress}>
|
||||
<Text style={styles.text}>{title}</Text>
|
||||
</Pressable>
|
||||
);
|
||||
}
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
import { StyleSheet } from 'react-native';
|
||||
|
||||
export default StyleSheet.create({
|
||||
button: {
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
padding: 3,
|
||||
marginTop: 5,
|
||||
marginHorizontal: 10,
|
||||
borderRadius: 10,
|
||||
backgroundColor: '#2D2C33',
|
||||
},
|
||||
text: {
|
||||
fontSize: 16,
|
||||
lineHeight: 21,
|
||||
fontWeight: 'bold',
|
||||
letterSpacing: 0.25,
|
||||
color: 'white',
|
||||
},
|
||||
});
|
@ -0,0 +1,29 @@
|
||||
import { StyleSheet } from 'react-native';
|
||||
|
||||
export default StyleSheet.create({
|
||||
button: {
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
padding: 3,
|
||||
marginTop: 5,
|
||||
borderRadius: 10,
|
||||
backgroundColor: '#2D2C33',
|
||||
paddingHorizontal: 10,
|
||||
},
|
||||
buttonProfile: {
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
padding: 3,
|
||||
marginTop: 5,
|
||||
borderRadius: 10,
|
||||
backgroundColor: '#2D2C33',
|
||||
marginHorizontal: 10,
|
||||
},
|
||||
text: {
|
||||
fontSize: 16,
|
||||
lineHeight: 21,
|
||||
fontWeight: 'bold',
|
||||
letterSpacing: 0.25,
|
||||
color: 'white',
|
||||
},
|
||||
});
|
Loading…
Reference in new issue