Skip to content

Commit

Permalink
[web] Position close-modal button
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjooiopa committed Apr 28, 2024
1 parent 31d24f5 commit 256eaa7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions web/src/app/(auth)/send/QrScanModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ const QrScan: FC<IQrScanProps> = ({ closeModal, setInvoice }) => {
leaveTo="opacity-0 scale-95"
>
<Dialog.Panel className="h-full w-full max-w-md transform overflow-hidden bg-gray-300 rounded p-2 text-left align-middle shadow-xl transition-all">
<div className="mt-1">
<button type="button" className="inline-flex p-2 rounded bg-gray-700" onClick={closeModal}>
Close
</button>
</div>

<QrReader
constraints={{
facingMode: 'environment',
Expand Down Expand Up @@ -76,6 +70,16 @@ const QrScan: FC<IQrScanProps> = ({ closeModal, setInvoice }) => {
}
}}
/>

<div className="float-right mt-1">
<button
type="button"
className="flex items-center py-2 px-6 rounded bg-gray-700"
onClick={closeModal}
>
Cancel
</button>
</div>
</Dialog.Panel>
</Transition.Child>
</div>
Expand Down

0 comments on commit 256eaa7

Please sign in to comment.