mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
allow people to switch to a mock id (#732)
This commit is contained in:
committed by
GitHub
parent
8ac75286eb
commit
a6edf217ce
@@ -290,76 +290,75 @@ const MockDataScreen: React.FC<MockDataScreenProps> = ({}) => {
|
||||
</YStack>
|
||||
</GestureDetector>
|
||||
|
||||
<XStack ai="center" jc="space-between">
|
||||
<BodyText>Document Type</BodyText>
|
||||
<XStack space="$2" ai="center">
|
||||
<Button
|
||||
size="$3"
|
||||
onPress={() => {
|
||||
buttonTap();
|
||||
setSelectedDocumentType('mock_passport');
|
||||
}}
|
||||
bg={
|
||||
selectedDocumentType === 'mock_passport'
|
||||
? '$blue7Light'
|
||||
: white
|
||||
}
|
||||
borderColor={borderColor}
|
||||
borderWidth={1}
|
||||
color={
|
||||
selectedDocumentType === 'mock_passport'
|
||||
? white
|
||||
: textBlack
|
||||
}
|
||||
>
|
||||
Passport
|
||||
</Button>
|
||||
<Button
|
||||
size="$3"
|
||||
onPress={() => {
|
||||
buttonTap();
|
||||
setSelectedDocumentType('mock_id_card');
|
||||
}}
|
||||
bg={
|
||||
selectedDocumentType === 'mock_id_card'
|
||||
? '$blue7Light'
|
||||
: white
|
||||
}
|
||||
borderColor={borderColor}
|
||||
borderWidth={1}
|
||||
color={
|
||||
selectedDocumentType === 'mock_id_card'
|
||||
? white
|
||||
: textBlack
|
||||
}
|
||||
>
|
||||
ID Card
|
||||
</Button>
|
||||
</XStack>
|
||||
</XStack>
|
||||
|
||||
{advancedMode && (
|
||||
<>
|
||||
<XStack ai="center" jc="space-between">
|
||||
<BodyText>Document Type</BodyText>
|
||||
<XStack space="$2" ai="center">
|
||||
<Button
|
||||
size="$3"
|
||||
onPress={() => {
|
||||
buttonTap();
|
||||
setSelectedDocumentType('mock_passport');
|
||||
}}
|
||||
bg={
|
||||
selectedDocumentType === 'mock_passport'
|
||||
? '$blue7Light'
|
||||
: white
|
||||
}
|
||||
borderColor={borderColor}
|
||||
borderWidth={1}
|
||||
color={
|
||||
selectedDocumentType === 'mock_passport'
|
||||
? white
|
||||
: textBlack
|
||||
}
|
||||
>
|
||||
Passport
|
||||
</Button>
|
||||
<Button
|
||||
size="$3"
|
||||
onPress={() => {
|
||||
buttonTap();
|
||||
setSelectedDocumentType('mock_id_card');
|
||||
}}
|
||||
bg={
|
||||
selectedDocumentType === 'mock_id_card'
|
||||
? '$blue7Light'
|
||||
: white
|
||||
}
|
||||
borderColor={borderColor}
|
||||
borderWidth={1}
|
||||
color={
|
||||
selectedDocumentType === 'mock_id_card'
|
||||
? white
|
||||
: textBlack
|
||||
}
|
||||
>
|
||||
ID Card
|
||||
</Button>
|
||||
<XStack ai="center" jc="space-between">
|
||||
<BodyText>Encryption</BodyText>
|
||||
<Button
|
||||
onPress={() => {
|
||||
buttonTap();
|
||||
setAlgorithmSheetOpen(true);
|
||||
}}
|
||||
p="$2"
|
||||
px="$3"
|
||||
bg="white"
|
||||
borderColor={borderColor}
|
||||
borderWidth={1}
|
||||
borderRadius="$4"
|
||||
>
|
||||
<XStack ai="center" gap="$2">
|
||||
<Text fontSize="$4">{selectedAlgorithm}</Text>
|
||||
<ChevronDown size={20} />
|
||||
</XStack>
|
||||
</XStack>
|
||||
<XStack ai="center" jc="space-between">
|
||||
<BodyText>Encryption</BodyText>
|
||||
<Button
|
||||
onPress={() => {
|
||||
buttonTap();
|
||||
setAlgorithmSheetOpen(true);
|
||||
}}
|
||||
p="$2"
|
||||
px="$3"
|
||||
bg="white"
|
||||
borderColor={borderColor}
|
||||
borderWidth={1}
|
||||
borderRadius="$4"
|
||||
>
|
||||
<XStack ai="center" gap="$2">
|
||||
<Text fontSize="$4">{selectedAlgorithm}</Text>
|
||||
<ChevronDown size={20} />
|
||||
</XStack>
|
||||
</Button>
|
||||
</XStack>
|
||||
</>
|
||||
</Button>
|
||||
</XStack>
|
||||
)}
|
||||
|
||||
<XStack ai="center" jc="space-between">
|
||||
|
||||
Reference in New Issue
Block a user