fix indentation

This commit is contained in:
Michele Balistreri 2024-10-08 16:55:19 +02:00
parent fe3822354a
commit 42348b281c
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
1 changed files with 28 additions and 29 deletions

View File

@ -16,42 +16,41 @@ const SubMenuModal: FC<SubMenuProps> = props => {
return (
<Modal isVisible={isVisible} backdropOpacity={0} onBackdropPress={onChangeFunc} style={styles.container} animationIn={"bounceIn"} animationOut={"bounceOut"}>
<View style={styles.submenuContent}>
<TouchableOpacity onPress={onFactoryReset} style={styles.itemContainer}>
<Text style={styles.menuText}>Factory Reset</Text>
</TouchableOpacity>
<View style={{borderBottomColor: 'white', borderBottomWidth: StyleSheet.hairlineWidth}}
/>
<TouchableOpacity onPress={onLogout} style={styles.itemContainer}>
<Text style={styles.menuText}>Logout</Text>
</TouchableOpacity>
</View>
<View style={styles.submenuContent}>
<TouchableOpacity onPress={onFactoryReset} style={styles.itemContainer}>
<Text style={styles.menuText}>Factory Reset</Text>
</TouchableOpacity>
<View style={{borderBottomColor: 'white', borderBottomWidth: StyleSheet.hairlineWidth}}/>
<TouchableOpacity onPress={onLogout} style={styles.itemContainer}>
<Text style={styles.menuText}>Logout</Text>
</TouchableOpacity>
</View>
</Modal>
)};
const styles = StyleSheet.create({
container: {
justifyContent: 'center',
top: '15%',
right: '2.5%',
margin: 0,
position: 'absolute',
backgroundColor: '#333333',
borderRadius: 5,
},
justifyContent: 'center',
top: '15%',
right: '2.5%',
margin: 0,
position: 'absolute',
backgroundColor: '#333333',
borderRadius: 5,
},
submenuContent: {
},
itemContainer: {
paddingVertical: 20,
paddingLeft: 20,
paddingRight: 80
paddingVertical: 20,
paddingLeft: 20,
paddingRight: 80
},
menuText: {
color: 'white',
fontFamily: 'Inter',
fontSize: 14
color: 'white',
fontFamily: 'Inter',
fontSize: 14
}
});
export default SubMenuModal;
export default SubMenuModal;