From 9d5a9f8c80cb73cf5023a0cd67ed8b85532cb3fb Mon Sep 17 00:00:00 2001 From: Josh <102478723+realjoshuau@users.noreply.github.com> Date: Fri, 22 Dec 2023 11:10:06 -0800 Subject: [PATCH] bruh --- apps/mobile/app/index.tsx | 29 ++++++------ apps/mobile/app/scouting.tsx | 7 ++- apps/mobile/components/settings/schema.ts | 55 +++++++++++++++++++++++ apps/mobile/package.json | 5 ++- apps/mobile/utils/deepFreeze.ts | 16 +++++++ pnpm-lock.yaml | 12 +++++ 6 files changed, 109 insertions(+), 15 deletions(-) create mode 100644 apps/mobile/components/settings/schema.ts create mode 100644 apps/mobile/utils/deepFreeze.ts diff --git a/apps/mobile/app/index.tsx b/apps/mobile/app/index.tsx index 629facf..eda9799 100644 --- a/apps/mobile/app/index.tsx +++ b/apps/mobile/app/index.tsx @@ -62,26 +62,22 @@ export default function App() { const handleBarCodeScanned = ({ type, data }) => { setScanned(true); alert(`Bar code with type ${type} and data ${data} has been scanned!`); + setTimeout(() => { + setScanned(false); + }, 5000); }; return ( Attendance! - {/* */} {/* */} - + + + Has permission: {hasPermission.toString()} {scanned &&