Skip to content

Commit

Permalink
Rearrange Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
holliskuang committed Mar 16, 2023
1 parent 9eabe17 commit 202f96f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
6 changes: 4 additions & 2 deletions client/src/EMS/RingdownForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +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} />}
{step === 0 && (
<>
<button disabled={!ringdown.isPatientValid} className="usa-button width-full" type="button" onClick={next}>
Expand All @@ -152,6 +153,7 @@ function RingdownForm({ defaultPayload, className }) {
</button>
</>
)}
{step === 1 && <HospitalSelection onChange={onChange} ringdown={ringdown} />}
{step === 1 && (
<>
<button disabled={!ringdown.isValid} className="usa-button width-full" type="button" onClick={send}>
Expand Down
16 changes: 0 additions & 16 deletions example.env

This file was deleted.

0 comments on commit 202f96f

Please sign in to comment.