diff --git a/messages/de.json b/messages/de.json index ce428c8de..3920ccab7 100644 --- a/messages/de.json +++ b/messages/de.json @@ -2048,23 +2048,23 @@ }, "onTimePerfect1": { "title": "Zeitfenster 1T", - "description": "Nimm 1 Tage in Folge alle Medikamente im Zeitfenster ein." + "description": "Nimm an einem Tag alle Medikamente im Zeitfenster ein." }, "compliance801": { "title": "Treue 80% · 1T", - "description": "Erreiche 1 Tage in Folge eine 30-Tage-Einnahmetreue von mindestens 80%." + "description": "Erreiche an einem Tag eine 30-Tage-Einnahmetreue von mindestens 80%." }, "bmiGreen1": { "title": "BMI im Grün · 1T", - "description": "Halte deinen BMI 1 Tage in Folge im Normalbereich." + "description": "Halte deinen BMI an einem Tag im Normalbereich." }, "bpGreen1": { "title": "Blutdruck im Grün · 1T", - "description": "Halte deinen Blutdruck 1 Tage in Folge im Normalbereich." + "description": "Halte deinen Blutdruck an einem Tag im Normalbereich." }, "pulseGreen1": { "title": "Puls im Grün · 1T", - "description": "Halte deinen Ruhepuls 1 Tage in Folge im Normalbereich." + "description": "Halte deinen Ruhepuls an einem Tag im Normalbereich." }, "onTimePerfect7": { "title": "Zeitfenster 7T", @@ -2171,7 +2171,7 @@ "description": "Erfasse 50 Gewichtsmessungen." }, "weight200": { - "title": "Zweihundert Wiegungen", + "title": "200 Wiegungen", "description": "Erfasse 200 Gewichtsmessungen." }, "bpFirst": { @@ -2183,7 +2183,7 @@ "description": "Erfasse 50 Blutdruckmessungen." }, "bp200": { - "title": "Zweihundert Blutdruckmessungen", + "title": "200 Blutdruckmessungen", "description": "Erfasse 200 Blutdruckmessungen." }, "pulseFirst": { diff --git a/messages/en.json b/messages/en.json index ab8c13cf8..030e2b3b7 100644 --- a/messages/en.json +++ b/messages/en.json @@ -2048,23 +2048,23 @@ }, "onTimePerfect1": { "title": "On-time 1d", - "description": "Take all medications on time for 1 consecutive days." + "description": "Take all medications on time for 1 day." }, "compliance801": { "title": "80% adherence · 1d", - "description": "Reach at least 80% 30-day adherence for 1 consecutive days." + "description": "Reach at least 80% 30-day adherence for 1 day." }, "bmiGreen1": { "title": "BMI green · 1d", - "description": "Keep your BMI in the normal range for 1 consecutive days." + "description": "Keep your BMI in the normal range for 1 day." }, "bpGreen1": { "title": "BP green · 1d", - "description": "Keep your blood pressure in the normal range for 1 consecutive days." + "description": "Keep your blood pressure in the normal range for 1 day." }, "pulseGreen1": { "title": "Pulse green · 1d", - "description": "Keep your resting pulse in the normal range for 1 consecutive days." + "description": "Keep your resting pulse in the normal range for 1 day." }, "onTimePerfect7": { "title": "On-time 7d", @@ -2171,7 +2171,7 @@ "description": "Record 50 weight measurements." }, "weight200": { - "title": "Two hundred weigh-ins", + "title": "200 weigh-ins", "description": "Record 200 weight measurements." }, "bpFirst": { @@ -2183,7 +2183,7 @@ "description": "Record 50 blood-pressure measurements." }, "bp200": { - "title": "Two hundred BP readings", + "title": "200 BP readings", "description": "Record 200 blood-pressure measurements." }, "pulseFirst": { diff --git a/src/components/admin/_shared.tsx b/src/components/admin/_shared.tsx index f9bbb8d2b..f34a2c3b8 100644 --- a/src/components/admin/_shared.tsx +++ b/src/components/admin/_shared.tsx @@ -179,7 +179,7 @@ export function SettingsToggle({ disabled, }: { label: string; - description: string; + description?: string; icon?: React.ComponentType<{ className?: string }>; checked: boolean; onCheckedChange: (checked: boolean) => void; @@ -191,7 +191,9 @@ export function SettingsToggle({ {Icon && }

{label}

-

{description}

+ {description && ( +

{description}

+ )}
diff --git a/src/components/admin/umami-section.tsx b/src/components/admin/umami-section.tsx index 561fbd3ec..8656c4423 100644 --- a/src/components/admin/umami-section.tsx +++ b/src/components/admin/umami-section.tsx @@ -95,8 +95,7 @@ export function UmamiSection() {