moved remove from flock button
This commit is contained in:
+19
-3
@@ -4005,9 +4005,6 @@ function App() {
|
||||
<button className="secondary-button" onClick={() => startEditBird(selectedBird)} type="button">
|
||||
Edit details
|
||||
</button>
|
||||
<button className="danger-button" onClick={handleRemoveBird} type="button" disabled={deletingBird}>
|
||||
{deletingBird ? 'Removing...' : 'Remove from flock'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5281,6 +5278,25 @@ function App() {
|
||||
</article>
|
||||
)}
|
||||
</section>
|
||||
|
||||
{selectedBird ? (
|
||||
<section className="settings-subsection settings-nested-card settings-danger-card">
|
||||
<div className="panel-header">
|
||||
<div>
|
||||
<p className="eyebrow">Danger zone</p>
|
||||
<h3>Remove bird profile</h3>
|
||||
<p className="muted">
|
||||
Remove {selectedBird.name} from this flock. This also removes weight records, vet visits, and medication history for this bird.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="button-row">
|
||||
<button className="danger-button" onClick={handleRemoveBird} type="button" disabled={deletingBird}>
|
||||
{deletingBird ? 'Removing...' : 'Remove from flock'}
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
) : null}
|
||||
</>
|
||||
) : null}
|
||||
</article>
|
||||
|
||||
@@ -567,6 +567,11 @@ textarea {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.settings-danger-card {
|
||||
border-color: rgba(203, 58, 53, 0.22);
|
||||
background: linear-gradient(180deg, rgba(255, 250, 246, 0.86), rgba(255, 241, 238, 0.72));
|
||||
}
|
||||
|
||||
.settings-save-row {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
|
||||
Reference in New Issue
Block a user