fix: remove duplicate 'New Medication' button from edit form (#38)

The button was redundant as it already exists in the medication list header.
This commit is contained in:
Daniel Volz
2026-01-17 23:13:57 +01:00
committed by GitHub
parent cfd37ca526
commit 8928915947
-5
View File
@@ -2110,11 +2110,6 @@ function AppContent() {
<article className="card form desktop-only">
<div className="card-head">
<h2>{editingId ? t('form.editEntry') : t('form.newEntry')}</h2>
{editingId && (
<button type="button" className="btn secondary small" onClick={resetForm}>
+ {t('form.newEntry')}
</button>
)}
</div>
<form className="form-grid" onSubmit={saveMedication}>
<label className={fieldErrors.name ? 'has-error' : ''}>