From 22a63a94d0b389842ababd0a5dabe6c55c05974b Mon Sep 17 00:00:00 2001 From: lukasbicus Date: Thu, 31 Oct 2024 13:16:11 +0100 Subject: [PATCH] Open modal on init. --- app/create-card/create-card-form.tsx | 6 +++++- app/create-card/scanner.tsx | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/create-card/create-card-form.tsx b/app/create-card/create-card-form.tsx index 4c7044d..361ffc5 100644 --- a/app/create-card/create-card-form.tsx +++ b/app/create-card/create-card-form.tsx @@ -116,6 +116,10 @@ export default function CreateCardForm() { }; }, []); + useEffect(() => { + cameraModalRef.current?.showModal(); + }, []); + return ( <>
- +