-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from JohnsonMao/feature/signin-page-success-m…
…odal feature: signin page success modal
- Loading branch information
Showing
8 changed files
with
135 additions
and
169 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { useId } from "react"; | ||
import Image from "@/shared/components/Image"; | ||
import Modal from "@/shared/components/Modal"; | ||
|
||
interface TipModalProps { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
onOk: () => void; | ||
} | ||
|
||
function TipModal({ isOpen, onClose, onOk }: Readonly<TipModalProps>) { | ||
const id = useId(); | ||
const describedby = `tip-modal-${id}`; | ||
|
||
return ( | ||
<Modal | ||
keepMounted | ||
isOpen={isOpen} | ||
onClose={onClose} | ||
className="sm:max-w-[440px]" | ||
title="帳號註冊成功!" | ||
describedby={describedby} | ||
> | ||
<p | ||
id={describedby} | ||
className="mt-2 mb-6 text-center text-basic-400 body-sm" | ||
> | ||
記得到信箱確認收到帳號驗證信件,並點選驗證Email按鈕,如果沒有看到信件,可以到垃圾桶確認。 | ||
</p> | ||
<Image | ||
src="/assets/partner-popup.png" | ||
alt="dao-dao-island" | ||
width="360" | ||
height="280" | ||
/> | ||
<p className="my-6 text-center text-basic-400 body-sm"> | ||
我們會公開你的<strong className="font-bold">個人檔案</strong> | ||
,填寫完整的資料,才能讓其他夥伴們更了解你喔! | ||
</p> | ||
<div className="flex gap-2"> | ||
<button | ||
type="button" | ||
className="flex-1 py-2 shadow-lg transition-colors rounded-full bg-white text-primary-darker hover:bg-basic-100" | ||
onClick={onClose} | ||
> | ||
暫時不需要 | ||
</button> | ||
<button | ||
type="button" | ||
className="flex-1 py-2 shadow-lg transition-colors rounded-full bg-primary-base text-white hover:bg-primary-darker" | ||
onClick={onOk} | ||
> | ||
想,填寫資料 | ||
</button> | ||
</div> | ||
</Modal> | ||
); | ||
} | ||
|
||
export default TipModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.