diff --git a/src/app/(app)/settings/Settings.tsx b/src/app/(app)/settings/Settings.tsx
index b971531..717a756 100644
--- a/src/app/(app)/settings/Settings.tsx
+++ b/src/app/(app)/settings/Settings.tsx
@@ -181,6 +181,27 @@ function Card({ title, what, s, children }: { title: string; what?: string; s?:
);
}
+// When a month starts: on the 1st, or on payday (lib/paymonths.ts). Saved as soon as it's picked.
+function MonthStart({ profile }: { profile: Profile }) {
+ const router = useRouter();
+ const [v, setV] = useState(profile.month === "payday" ? "payday" : "calendar");
+ const [msg, setMsg] = useState("");
+ async function pick(next: string) {
+ setV(next);
+ const { error } = await updateMeta(createClient(), { data: { profile: { ...profile, month: next === "payday" ? "payday" : undefined } } });
+ setMsg(error ? "Couldn't save that. Try again." : "Saved.");
+ if (!error) router.refresh();
+ }
+ return (
+
Your credit range picks which cards fit you on the Cards page.
-On payday: each month runs from one salary to the day before the next, and is named after the month it mostly covers. Salary is money in under Income.
-