feat: embed medication overview into shared links

Closes #424
This commit is contained in:
Daniel Volz
2026-03-14 20:26:17 +01:00
committed by GitHub
parent fd3134be24
commit e0fb77d494
35 changed files with 2607 additions and 1297 deletions
+8 -5
View File
@@ -870,18 +870,21 @@ export function SettingsPage() {
<div className="section-header">
<h3>{t("settings.timeline.sharedSection")}</h3>
</div>
<div className="setting-row compact">
<div className="setting-row compact" style={{ marginTop: "10px" }}>
<div className="setting-label">
<span>{t("settings.stock.shareStockStatus")}</span>
<span className="info-tooltip small" data-tooltip={t("settings.stock.shareStockStatusDesc")}>
<span>{t("settings.timeline.shareMedicationOverview")}</span>
<span
className="info-tooltip small"
data-tooltip={t("settings.timeline.shareMedicationOverviewDesc")}
>
</span>
</div>
<label className="toggle-switch small">
<input
type="checkbox"
checked={settings.shareStockStatus}
onChange={(e) => setSettings({ ...settings, shareStockStatus: e.target.checked })}
checked={settings.shareMedicationOverview}
onChange={(e) => setSettings({ ...settings, shareMedicationOverview: e.target.checked })}
/>
<span className="toggle-slider"></span>
</label>