fix smol type errors

This commit is contained in:
0xturboblitz
2024-02-19 09:40:49 -07:00
parent 43607e2906
commit ad1bc7f02b
2 changed files with 3 additions and 3 deletions

View File

@@ -104,11 +104,11 @@ function App(): JSX.Element {
};
const handleDisclosureChange = (field: keyof typeof disclosure) => {
const handleDisclosureChange = (field: string) => {
setDisclosure(
{
...disclosure,
[field]: !disclosure[field]
[field]: !disclosure[field as keyof typeof disclosure]
});
};

View File

@@ -332,7 +332,7 @@ const MainScreen: React.FC<MainScreenProps> = ({
<Dialog.Title>Help</Dialog.Title>
<HelpCircle mt="$1" alignSelf='center' size="$2" />
</XStack>
<H3 fontFamily="Luciole" mt="$3">How to scan your passport ?</H3>
<H3 mt="$3">How to scan your passport ?</H3>
<YStack>
<Text>1. Find the location of the NFC chip of your passport.</Text>
<Text>If you are struggling <Text color="#3185FC">this post</Text> will help you to find it.</Text>