mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
adjusting modal layout
This commit is contained in:
parent
04e4da7aa3
commit
8c1eb824e7
@ -383,23 +383,21 @@ export function Settings() {
|
||||
onChangeText={actions.setSealPassword}
|
||||
/>
|
||||
|
||||
<View style={styles.buttons}>
|
||||
{ state.sealPassword && (
|
||||
<TouchableOpacity style={styles.enabledButton} activeOpacity={1} onPress={() => sealAction(actions.unlockKey)}>
|
||||
{ busy && (
|
||||
<ActivityIndicator style={styles.modalBusy} animating={true} color={Colors.primaryButtonText} />
|
||||
)}
|
||||
{ !busy && (
|
||||
<Text style={styles.enabledButtonText}>{ state.strings.unlock }</Text>
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
{ !state.sealPassword && (
|
||||
<View style={styles.disabledButton}>
|
||||
<Text style={styles.disabledButtonText}>{ state.strings.unlock }</Text>
|
||||
</View>
|
||||
)}
|
||||
</View>
|
||||
{ state.sealPassword && (
|
||||
<TouchableOpacity style={styles.enabledButton} activeOpacity={1} onPress={() => sealAction(actions.unlockKey)}>
|
||||
{ busy && (
|
||||
<ActivityIndicator style={styles.modalBusy} animating={true} color={Colors.primaryButtonText} />
|
||||
)}
|
||||
{ !busy && (
|
||||
<Text style={styles.enabledButtonText}>{ state.strings.unlock }</Text>
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
{ !state.sealPassword && (
|
||||
<View style={styles.disabledButton}>
|
||||
<Text style={styles.disabledButtonText}>{ state.strings.unlock }</Text>
|
||||
</View>
|
||||
)}
|
||||
<TouchableOpacity activeOpacity={1} onPress={actions.showSealRemove}>
|
||||
<Text style={styles.dangerText}>{ state.strings.removeSeal }</Text>
|
||||
</TouchableOpacity>
|
||||
|
@ -192,7 +192,7 @@ export const styles = StyleSheet.create({
|
||||
right: 16,
|
||||
},
|
||||
enabledButton: {
|
||||
marginTop: 8,
|
||||
marginTop: 24,
|
||||
marginBottom: 16,
|
||||
borderRadius: 4,
|
||||
backgroundColor: Colors.primaryButton,
|
||||
@ -207,7 +207,7 @@ export const styles = StyleSheet.create({
|
||||
fontFamily: 'Roboto',
|
||||
},
|
||||
disabledButton: {
|
||||
marginTop: 8,
|
||||
marginTop: 24,
|
||||
marginBottom: 16,
|
||||
borderRadius: 4,
|
||||
backgroundColor: Colors.disabledButton,
|
||||
@ -222,7 +222,7 @@ export const styles = StyleSheet.create({
|
||||
fontFamily: 'Roboto',
|
||||
},
|
||||
dangerButton: {
|
||||
marginTop: 8,
|
||||
marginTop: 24,
|
||||
marginBottom: 16,
|
||||
borderRadius: 4,
|
||||
backgroundColor: Colors.dangerButton,
|
||||
@ -253,7 +253,7 @@ export const styles = StyleSheet.create({
|
||||
fontFamily: 'Roboto',
|
||||
},
|
||||
cancelButton: {
|
||||
marginTop: 8,
|
||||
marginTop: 24,
|
||||
marginBottom: 16,
|
||||
marginRight: 16,
|
||||
borderRadius: 4,
|
||||
|
Loading…
Reference in New Issue
Block a user