Change style of primary buttons

According to React Native Paper docs, the purpose
of the "contained" mode of button is for the primary
action.

https://callstack.github.io/react-native-paper/docs/components/Button/#mode
This commit is contained in:
Brandon Presley 2023-11-15 10:51:54 +13:00
parent 35a3ef75b6
commit c507370398
6 changed files with 6 additions and 6 deletions

View File

@ -189,7 +189,7 @@ export default function EditExercises() {
</ScrollView>
<Button
disabled={!name}
mode="outlined"
mode="contained"
icon="content-save"
onPress={update}
>

View File

@ -193,7 +193,7 @@ export default function EditPlan() {
<Button
disabled={exercises.length === 0 && days.length === 0}
mode="outlined"
mode="contained"
icon="content-save"
onPress={async () => {
await save();

View File

@ -334,7 +334,7 @@ export default function EditSet() {
<Button
disabled={!name}
mode="outlined"
mode="contained"
icon="content-save"
style={{ margin: MARGIN }}
onPress={handleSubmit}

View File

@ -187,7 +187,7 @@ export default function EditSets() {
</View>
<Button
mode="outlined"
mode="contained"
icon="content-save"
style={{ margin: MARGIN }}
onPress={save}

View File

@ -151,7 +151,7 @@ export default function EditWeight() {
<Button
disabled={!value}
mode="outlined"
mode="contained"
icon="content-save"
style={{ margin: MARGIN }}
onPress={submit}

View File

@ -231,7 +231,7 @@ export default function StartPlan() {
/>
)}
</View>
<Button mode="outlined" icon="content-save" onPress={handleSubmit}>
<Button mode="contained" icon="content-save" onPress={handleSubmit}>
Save
</Button>
</View>