DEL: Remove de la fonction button dans les screens

stub-api
Alban GUILHOT 3 years ago
parent 0169c3da8b
commit 4ca8f44e65

@ -31,17 +31,6 @@ function Profile(props: { navigation: any; }) {
); );
} }
function Button(props: { onPress: any; title?: any | undefined; }) {
const { onPress, title = 'Save' } = props;
return (
<Pressable style={styles.button} onPress={onPress}>
<Text style={styles.text}>{title}</Text>
</Pressable>
);
}
const styles = StyleSheet.create({ const styles = StyleSheet.create({
body: { body: {
flex: 1, flex: 1,

@ -19,17 +19,6 @@ function Store(props: { navigation: any; }) {
); );
} }
function Button(props: { onPress: any; title?: any | undefined; }) {
const { onPress, title = 'Save' } = props;
return (
<Pressable style={styles.button} onPress={onPress}>
<Text style={styles.text}>{title}</Text>
</Pressable>
);
}
const styles = StyleSheet.create({ const styles = StyleSheet.create({
body: { body: {
flex: 1, flex: 1,

@ -39,17 +39,6 @@ function Store(props: { navigation: any; }) {
); );
} }
function Button(props: { onPress: any; title?: any | undefined; }) {
const { onPress, title = 'Save' } = props;
return (
<Pressable style={styles.button} onPress={onPress}>
<Text style={styles.text}>{title}</Text>
</Pressable>
);
}
const styles = StyleSheet.create({ const styles = StyleSheet.create({
body: { body: {
flex: 1, flex: 1,

Loading…
Cancel
Save