mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
fix(01-16): unify records action grammar
- use Save for new and existing lifestyle facts - show first-entry or populated-list add actions without duplication
This commit is contained in:
1 parent
c4ec2d552f
commit
431120d55e
3 files changed
+13
-11
No files matched your search
@@ -123,10 +123,12 @@ export function AllergyManager() {
|
||||
<p className="text-muted-foreground text-sm">
|
||||
{t("records.allergies.description")}
|
||||
</p>
|
||||
<Button size="sm" onClick={openNew} className="shrink-0">
|
||||
<Plus className="h-4 w-4" />
|
||||
{t("records.allergies.add")}
|
||||
</Button>
|
||||
{rows.length > 0 ? (
|
||||
<Button size="sm" onClick={openNew} className="shrink-0">
|
||||
<Plus className="h-4 w-4" />
|
||||
{t("records.allergies.add")}
|
||||
</Button>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
{isLoading ? (
|
||||
|
||||
@@ -108,10 +108,12 @@ export function FamilyHistoryManager() {
|
||||
<p className="text-muted-foreground text-sm">
|
||||
{t("records.family.description")}
|
||||
</p>
|
||||
<Button size="sm" onClick={openNew} className="shrink-0">
|
||||
<Plus className="h-4 w-4" />
|
||||
{t("records.family.add")}
|
||||
</Button>
|
||||
{rows.length > 0 ? (
|
||||
<Button size="sm" onClick={openNew} className="shrink-0">
|
||||
<Plus className="h-4 w-4" />
|
||||
{t("records.family.add")}
|
||||
</Button>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
{isLoading ? (
|
||||
|
||||
@@ -243,9 +243,7 @@ export function HealthProfileFactsManager() {
|
||||
aria-hidden
|
||||
/>
|
||||
)}
|
||||
{current
|
||||
? t("records.profileFacts.correct")
|
||||
: t("records.profileFacts.save")}
|
||||
{t("records.profileFacts.save")}
|
||||
</Button>
|
||||
{current ? (
|
||||
<ConfirmButton
|
||||
|
||||
Reference in new issue
Block a user