chore: fix ts

This commit is contained in:
2026-03-07 19:39:57 +01:00
parent 4be03a067c
commit 5c212e5f9c
@@ -75,7 +75,7 @@ export default function SettingsScreen() {
const s = StyleSheet.create({ const s = StyleSheet.create({
container: { container: {
flex: 1, flex: 1,
backgroundColor: colors.bg, backgroundColor: colors.bgPrimary,
}, },
content: { content: {
padding: spacing.l, padding: spacing.l,
@@ -83,12 +83,12 @@ export default function SettingsScreen() {
}, },
section: { section: {
backgroundColor: colors.bgSecondary, backgroundColor: colors.bgSecondary,
borderRadius: borderRadius.l, borderRadius: borderRadius.lg,
marginBottom: spacing.l, marginBottom: spacing.l,
overflow: "hidden", overflow: "hidden",
}, },
sectionTitle: { sectionTitle: {
fontSize: fontSize.s, fontSize: fontSize.sm,
fontWeight: "700", fontWeight: "700",
color: colors.textMuted, color: colors.textMuted,
textTransform: "uppercase", textTransform: "uppercase",
@@ -114,12 +114,12 @@ export default function SettingsScreen() {
marginRight: spacing.m, marginRight: spacing.m,
}, },
rowLabel: { rowLabel: {
fontSize: fontSize.m, fontSize: fontSize.md,
color: colors.text, color: colors.textPrimary,
fontWeight: "600", fontWeight: "600",
}, },
rowDesc: { rowDesc: {
fontSize: fontSize.s, fontSize: fontSize.sm,
color: colors.textMuted, color: colors.textMuted,
marginTop: 2, marginTop: 2,
}, },
@@ -148,12 +148,12 @@ export default function SettingsScreen() {
backgroundColor: colors.accent, backgroundColor: colors.accent,
}, },
categoryName: { categoryName: {
fontSize: fontSize.m, fontSize: fontSize.md,
color: colors.text, color: colors.textPrimary,
flex: 1, flex: 1,
}, },
allCatsHint: { allCatsHint: {
fontSize: fontSize.s, fontSize: fontSize.sm,
color: colors.textMuted, color: colors.textMuted,
fontStyle: "italic", fontStyle: "italic",
paddingHorizontal: spacing.l, paddingHorizontal: spacing.l,
@@ -161,7 +161,7 @@ export default function SettingsScreen() {
}, },
saveButton: { saveButton: {
backgroundColor: colors.accent, backgroundColor: colors.accent,
borderRadius: borderRadius.l, borderRadius: borderRadius.lg,
paddingVertical: spacing.m, paddingVertical: spacing.m,
alignItems: "center", alignItems: "center",
flexDirection: "row", flexDirection: "row",
@@ -171,7 +171,7 @@ export default function SettingsScreen() {
}, },
saveButtonText: { saveButtonText: {
color: "#fff", color: "#fff",
fontSize: fontSize.m, fontSize: fontSize.md,
fontWeight: "700", fontWeight: "700",
}, },
}); });
@@ -304,8 +304,8 @@ export default function SettingsScreen() {
type={alert.type} type={alert.type}
title={alert.title} title={alert.title}
message={alert.message} message={alert.message}
onConfirm={alert.onConfirm ?? hideAlert} onClose={hideAlert}
onCancel={alert.onCancel ? hideAlert : undefined} onConfirm={alert.onConfirm}
confirmText={alert.confirmText} confirmText={alert.confirmText}
cancelText={alert.cancelText} cancelText={alert.cancelText}
/> />