mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
fix(onboarding): say what happens after adding an as-needed or record-only medication
This commit is contained in:
1 parent
ff3ef9147c
commit
367bc3fca5
8 files changed
+34
-12
No files matched your search
@@ -384,6 +384,10 @@ function ConnectNoticeTile({
|
||||
interface MedicationDetail {
|
||||
name: string;
|
||||
nextDueAt: string | null;
|
||||
/** v1.16.11 — as-needed: never reminded. */
|
||||
asNeeded?: boolean;
|
||||
/** v1.39.1 (#1033) — false: kept as a record, never reminded. */
|
||||
trackIntake?: boolean;
|
||||
}
|
||||
|
||||
function AddMedicationTask({
|
||||
@@ -418,11 +422,15 @@ function AddMedicationTask({
|
||||
: t("onboarding.flow.first-result.add-medication.doneUnnamed")
|
||||
}
|
||||
detail={
|
||||
detail.data?.nextDueAt
|
||||
? t("onboarding.flow.first-result.add-medication.nextDose", {
|
||||
when: fmt.dateTime(detail.data.nextDueAt),
|
||||
})
|
||||
: t("onboarding.flow.first-result.add-medication.reminders")
|
||||
detail.data?.trackIntake === false
|
||||
? t("onboarding.flow.first-result.add-medication.recordOnly")
|
||||
: detail.data?.asNeeded
|
||||
? t("onboarding.flow.first-result.add-medication.asNeeded")
|
||||
: detail.data?.nextDueAt
|
||||
? t("onboarding.flow.first-result.add-medication.nextDose", {
|
||||
when: fmt.dateTime(detail.data.nextDueAt),
|
||||
})
|
||||
: t("onboarding.flow.first-result.add-medication.reminders")
|
||||
}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user