chore: update
This commit is contained in:
@@ -642,11 +642,11 @@ export default function ProductsScreen() {
|
||||
alignItems: "center",
|
||||
},
|
||||
comingSoonBtnActive: {
|
||||
borderColor: "#f59e0b",
|
||||
backgroundColor: "#f59e0b20",
|
||||
borderColor: "#22c55e",
|
||||
backgroundColor: "#22c55e20",
|
||||
},
|
||||
comingSoonBtnText: { color: colors.textMuted, fontSize: fontSize.sm },
|
||||
comingSoonBtnTextActive: { color: "#f59e0b", fontWeight: "700" },
|
||||
comingSoonBtnTextActive: { color: "#22c55e", fontWeight: "700" },
|
||||
|
||||
// Prices
|
||||
sectionHeader: {
|
||||
@@ -1027,7 +1027,14 @@ export default function ProductsScreen() {
|
||||
form.comingSoon && styles.comingSoonBtnActive,
|
||||
]}
|
||||
onPress={() =>
|
||||
setForm((f) => ({ ...f, comingSoon: !f.comingSoon }))
|
||||
setForm((f) => {
|
||||
const next = !f.comingSoon;
|
||||
return {
|
||||
...f,
|
||||
comingSoon: next,
|
||||
prices: f.prices.map((p) => ({ ...p, active: !next })),
|
||||
};
|
||||
})
|
||||
}
|
||||
>
|
||||
<Text style={[
|
||||
|
||||
Reference in New Issue
Block a user