forked from mosip/inji-wallet
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
107 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "Authentication", | ||
"text": "To be replaced with the appropriate method of authentication", | ||
"verify": "Verify" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; | ||
import { Button, Centered, Column, Text } from './ui'; | ||
import { Modal, ModalProps } from './ui/Modal'; | ||
import { Colors } from './ui/styleUtils'; | ||
|
||
export const OIDcAuthenticationModal: React.FC<OIDcAuthenticationModalProps> = ( | ||
props | ||
) => { | ||
const { t } = useTranslation('OIDcAuth'); | ||
|
||
return ( | ||
<Modal isVisible={props.isVisible} onDismiss={props.onDismiss}> | ||
<Column fill padding="32 4" align="space-between"> | ||
<Centered fill> | ||
<Icon name="card-account-details-outline" color={Colors.Orange} size={30} /> | ||
<Text align="center" | ||
weight="bold" | ||
margin='8 0 12 0' | ||
style={{ fontSize: 24 }}> | ||
{t('title')} | ||
</Text> | ||
<Text align="center">{t('text')}</Text> | ||
<Text align="center" color={Colors.Red} margin="16 0 0 0"> | ||
{props.error} | ||
</Text> | ||
</Centered> | ||
|
||
<Column margin="0 16 32"> | ||
<Button | ||
fill | ||
title={t('verify')} | ||
onPress={() => props.onVerify()} | ||
/> | ||
</Column> | ||
</Column> | ||
</Modal> | ||
); | ||
}; | ||
|
||
interface OIDcAuthenticationModalProps extends ModalProps { | ||
onVerify: () => void; | ||
error?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters