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:
parent
35a3ef75b6
commit
c507370398
|
@ -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}
|
||||||
>
|
>
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user