From 43f987d2f0988f6391872f2c429b1455c5977cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Thu, 4 Jul 2024 14:33:24 +0200 Subject: [PATCH] fix: increase timeout, blurred qr --- frontend/src/screens/apps/AppCreated.tsx | 31 ++++++++++++++++++------ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/frontend/src/screens/apps/AppCreated.tsx b/frontend/src/screens/apps/AppCreated.tsx index 528cee73..640ef997 100644 --- a/frontend/src/screens/apps/AppCreated.tsx +++ b/frontend/src/screens/apps/AppCreated.tsx @@ -1,4 +1,4 @@ -import { CopyIcon } from "lucide-react"; +import { CopyIcon, EyeIcon } from "lucide-react"; import { useEffect, useState } from "react"; import { Link, Navigate, useLocation, useNavigate } from "react-router-dom"; @@ -30,6 +30,7 @@ export default function AppCreated() { console.info(appstoreApp, appId); const [timeout, setTimeout] = useState(false); + const [isQRCodeVisible, setIsQRCodeVisible] = useState(false); const createAppResponse = state as CreateAppResponse; const pairingUri = createAppResponse.pairingUri; const { data: app } = useApp(createAppResponse.pairingPublicKey, true); @@ -42,7 +43,7 @@ export default function AppCreated() { useEffect(() => { const timeoutId = window.setTimeout(() => { setTimeout(true); - }, 10000); + }, 30000); return () => window.clearTimeout(timeoutId); }, []); @@ -125,12 +126,26 @@ export default function AppCreated() { )} - - {appstoreApp && ( - +
+ + {appstoreApp && ( + + )} +
+ {!isQRCodeVisible && ( + )}