Skip to content

Commit

Permalink
Update RingdownForm.js (#288)
Browse files Browse the repository at this point in the history
* Update RingdownForm.js
  • Loading branch information
holliskuang authored Apr 6, 2023
1 parent e4d27b8 commit a07b34d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/EMS/RingdownForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,10 @@ function RingdownForm({ defaultPayload, className }) {
</p>
</div>
</div>
{step === 0 && <PatientFields onChange={onChange} ringdown={ringdown} />}
{step === 1 && <HospitalSelection onChange={onChange} ringdown={ringdown} />}
<fieldset className="usa-fieldset border-top border-base-lighter">
{step === 0 && (
<>
<PatientFields onChange={onChange} ringdown={ringdown} />
<button disabled={!ringdown.isPatientValid} className="usa-button width-full" type="button" onClick={next}>
Select Hospital
</button>
Expand All @@ -154,6 +153,7 @@ function RingdownForm({ defaultPayload, className }) {
)}
{step === 1 && (
<>
<HospitalSelection onChange={onChange} ringdown={ringdown} />
<button disabled={!ringdown.isValid} className="usa-button width-full" type="button" onClick={send}>
Send Ringdown
</button>
Expand Down

0 comments on commit a07b34d

Please sign in to comment.