Skip to content

Commit

Permalink
[#12] Set checkbox align to center
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Jun 21, 2023
1 parent a5a0d46 commit 774aba6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/__tests__/pages/__snapshots__/AuthForm.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ exports[`AuthFormPage renders correctly 1`] = `
{
"alignItems": "center",
"flexDirection": "row",
"justifyContent": "center",
}
}
>
Expand All @@ -271,7 +272,7 @@ exports[`AuthFormPage renders correctly 1`] = `
{
"color": "#43484d",
"fontWeight": "bold",
"marginLeft": 10,
"marginLeft": 8,
"marginRight": 10,
}
}
Expand Down
5 changes: 5 additions & 0 deletions app/src/pages/AuthForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ const AuthForm = ({ navigation }) => {
checked={checked}
onPress={() => setChecked(!checked)}
containerStyle={styles.checkbox}
textStyle={styles.text}
testID="auth-checkbox-field"
center
/>
</View>
<Button title="primary" onPress={goToHome} testID="auth-login-button">
Expand All @@ -56,6 +58,9 @@ const styles = StyleSheet.create({
checkbox: {
backgroundColor: '#f9fafb',
},
text: {
marginLeft: 8,
},
});

export default AuthForm;

0 comments on commit 774aba6

Please sign in to comment.