Skip to content

Commit

Permalink
Merge pull request #1 from monocle/Fix-FillForm-tests
Browse files Browse the repository at this point in the history
Fix fill form tests
  • Loading branch information
Matth5050 authored Mar 10, 2023
2 parents d495614 + 0b474b9 commit ecda1f5
Show file tree
Hide file tree
Showing 5 changed files with 795 additions and 1,659 deletions.
41 changes: 19 additions & 22 deletions src/frontend/src/components/FillForms/EmptyFieldsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,27 @@ const EmptyFieldsModal: React.FC<Props> = ({
}

return !close ? (
<>
<div className="fixed top-0 bottom-0 left-0 right-0 z-9999 bg-black-30">
<div className="modalContainer flex flex-column tc mw7 w-100 fixed z-9999 bg-white shadow-5 black f6 f5-l fw6 br2 pb2 pt3">
<p>
You are about to download an incomplete form. Do you want to
continue?
</p>
<div className="flex justify-center pa2 mt3">
<button
onClick={clickDownload}
className="bg-blue white bg-animate hover-bg-dark-blue fw6 db w-100 br2 pv3 ph4 tc w-100 ma2"
>
Download
</button>
<button
onClick={onClose}
className="ba bw2 b--light-gray bg-white black bg-animate hover-bg-light-gray fw6 db w-100 br2 pv3 ph4 tc w-100 ma2"
>
Cancel
</button>
</div>
<div className="fixed top-0 bottom-0 left-0 right-0 z-9999 bg-black-30">
<div className="modalContainer flex flex-column tc mw7 w-100 fixed z-9999 bg-white shadow-5 black f6 f5-l fw6 br2 pb2 pt3">
<p>
You are about to download an incomplete form. Do you want to continue?
</p>
<div className="flex justify-center pa2 mt3">
<button
onClick={clickDownload}
className="bg-blue white bg-animate hover-bg-dark-blue fw6 db w-100 br2 pv3 ph4 tc w-100 ma2"
>
Download
</button>
<button
onClick={onClose}
className="ba bw2 b--light-gray bg-white black bg-animate hover-bg-light-gray fw6 db w-100 br2 pv3 ph4 tc w-100 ma2"
>
Cancel
</button>
</div>
</div>
</>
</div>
) : null;
};

Expand Down
Loading

0 comments on commit ecda1f5

Please sign in to comment.