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> </ScrollView>
<Button <Button
disabled={!name} disabled={!name}
mode="outlined" mode="contained"
icon="content-save" icon="content-save"
onPress={update} onPress={update}
> >

View File

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

View File

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

View File

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

View File

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

View File

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