Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/components/Global/IframeWrapper/StartVerificationView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ import { ThinkingPeanut } from '@/assets'
import { Button } from '@/components/0_Bruddle'
import CloudsBackground from '@/components/0_Bruddle/CloudsBackground'
import Image from 'next/image'
import NavHeader from '../NavHeader'

const StartVerificationView = ({ onStartVerification }: { onStartVerification: () => void }) => {
const StartVerificationView = ({
onStartVerification,
onClose,
}: {
onStartVerification: () => void
onClose: () => void
}) => {
return (
<div className="flex h-full w-full flex-col">
<div className="relative flex h-[45%] items-center justify-center bg-secondary-3/100">
Expand All @@ -17,6 +24,9 @@ const StartVerificationView = ({ onStartVerification }: { onStartVerification: (
height={100}
width={100}
/>
<div className="absolute right-5 top-5">
<NavHeader icon="cancel" onPrev={onClose} />
</div>
</div>

<div className="flex h-[55%] flex-col bg-white p-4">
Expand Down
5 changes: 4 additions & 1 deletion src/components/Global/IframeWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ const IframeWrapper = ({ src, visible, onClose, closeConfirmMessage }: IFrameWra
hideOverlay={false}
>
{!isVerificationStarted ? (
<StartVerificationView onStartVerification={() => setIsVerificationStarted(true)} />
<StartVerificationView
onClose={() => onClose('manual')}
onStartVerification={() => setIsVerificationStarted(true)}
/>
) : (
<div className="flex h-full flex-col gap-2 p-0">
<div className="h-full w-full flex-grow overflow-scroll">
Expand Down
Loading