Skip to content

Commit

Permalink
fix Dialog setOpen issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent550102 committed Feb 27, 2024
1 parent f63b950 commit e3afe79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/NonTokenModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const NonTokenModalContent = () => {

return (
<div>
<Dialog open={isModalOpen} setOpen={() => setModalOpen(false)}>
<Dialog open={isModalOpen} setOpen={setModalOpen}>
<div className="flex flex-col gap-4 break-all p-6">
<p className="mt-0">
請檢查 OPass 是否已成功報到,或透過下列方式進入遊戲。
Expand Down Expand Up @@ -64,7 +64,7 @@ const NonTokenModalContent = () => {

<Dialog
open={manualInputModal}
setOpen={() => setManualInputModal(false)}
setOpen={setManualInputModal}
>
<div className="flex flex-col gap-4 break-all p-6">
<div>手動輸入票券代碼</div>
Expand Down Expand Up @@ -98,7 +98,7 @@ const NonTokenModalContent = () => {

<Dialog
open={scanQRCodeModal}
setOpen={() => setScanQRCodeModal(false)}
setOpen={setScanQRCodeModal}
>
<div className="flex flex-col gap-4 break-all p-6">
<div>掃描票券 QR Code</div>
Expand Down

0 comments on commit e3afe79

Please sign in to comment.