From c36a691a058289cbbedf8b9e353cae832ee018dd Mon Sep 17 00:00:00 2001 From: turnoffthiscomputer Date: Tue, 27 Aug 2024 11:12:31 +0200 Subject: [PATCH] refactor ProveScreen --- app/src/components/CustomButton.tsx | 4 - app/src/screens/CameraScreen.tsx | 5 -- app/src/screens/ProveScreen.tsx | 117 ++++------------------------ app/src/utils/prover.ts | 29 ++++++- 4 files changed, 40 insertions(+), 115 deletions(-) diff --git a/app/src/components/CustomButton.tsx b/app/src/components/CustomButton.tsx index 449c406c..1cf212ee 100644 --- a/app/src/components/CustomButton.tsx +++ b/app/src/components/CustomButton.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { Button, Text } from 'tamagui'; import { bgBlue, bgGreen, textBlack } from '../utils/colors'; -import useNavigationStore from '../stores/navigationStore'; interface CustomButtonProps { text: string; @@ -15,9 +14,6 @@ interface CustomButtonProps { } const CustomButton: React.FC = ({ text, onPress, Icon, bgColor, h, isDisabled, disabledOnPress, blueVariant }) => { - const { - toast, - } = useNavigationStore(); return (