mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-08 21:18:14 -05:00
* fix(MOSIP-29275): make usesCleartextTraffic to false for more secure communication (#886) * fix(MOSIP-29275): make usesCleartextTraffic to false for more secure communications * fix(MOSIP-29275): override usesCleartextTraffic to false in main manifest --------- Signed-off-by: Swati Goel <meet2swati@gmail.com> Co-authored-by: Swati Goel <meet2swati@gmail.com> Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * MOSIP-29698 (#891) Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * Inji-409: debugging setup fix (#893) * feat(inji-400): update package-lock.json * feat(inji-400): move flipper config to separate file from app.ts Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * feat(inji-398): enable cleartextTrafficPermitted in debug mode (#895) Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * fix(INJI-397)error message for deleted vcfile (#875) * fix(INJI-397)error message for deleted vcfile * fix(INJI-397)refactor:log activity event * fix(INJI-397)refactor:log activity event * fix(INJI-397)refactor:comparing VCMetadata Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * fix(MOSIP-29272): remove paste option for pin inputs (#894) Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * Test runner support to run jar MOSIP-29698 (#898) * MOSIP-29698 * Test runner support to run jar MOSIP-29698 * Update TestData.json Signed-off-by: neeharikatech <76684248+neeharikatech@users.noreply.github.com> --------- Signed-off-by: neeharikatech <76684248+neeharikatech@users.noreply.github.com> Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * feat(inji-406): add logs for debugging tampered vc issues (#900) Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * Adjusted bottom tab for different screen sizes Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * Added responsive bottom line for ID input Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * Updated the missing texts with case sensitive Signed-off-by: anil_majji <majjianilkumar050@gmail.com> * Removed unused button text in Welcome screen Signed-off-by: anil_majji <majjianilkumar050@gmail.com> --------- Signed-off-by: Swati Goel <meet2swati@gmail.com> Signed-off-by: anil_majji <majjianilkumar050@gmail.com> Signed-off-by: neeharikatech <76684248+neeharikatech@users.noreply.github.com> Co-authored-by: Sreenadh S <32409698+sree96@users.noreply.github.com> Co-authored-by: Swati Goel <meet2swati@gmail.com> Co-authored-by: neeharikatech <76684248+neeharikatech@users.noreply.github.com> Co-authored-by: Tilak Puli <34330361+tilak-puli@users.noreply.github.com> Co-authored-by: srikanth716 <97477121+srikanth716@users.noreply.github.com>
99 lines
3.0 KiB
TypeScript
99 lines
3.0 KiB
TypeScript
import React from 'react';
|
|
import {useTranslation} from 'react-i18next';
|
|
import {Button, Column, Row} from '../../components/ui';
|
|
import {Theme} from '../../components/ui/styleUtils';
|
|
import {Text} from '../../components/ui';
|
|
import {Icon} from 'react-native-elements';
|
|
import {useQrLogin} from './QrLoginController';
|
|
import {Modal} from '../../components/ui/Modal';
|
|
import {Dimensions, Image} from 'react-native';
|
|
import {QrLoginRef} from '../../machines/QrLoginMachine';
|
|
|
|
export const QrLoginWarning: React.FC<QrLoginWarningProps> = props => {
|
|
const {t} = useTranslation('QrLogin');
|
|
const controller = useQrLogin(props);
|
|
|
|
return (
|
|
<Modal
|
|
isVisible={controller.isShowWarning}
|
|
arrowLeft={<Icon name={''} />}
|
|
headerTitle={t('confirmation')}
|
|
headerElevation={5}
|
|
onDismiss={props.onCancel}>
|
|
<Column
|
|
fill
|
|
align="space-between"
|
|
padding={'21 0 0 0'}
|
|
style={{display: props.isVisible ? 'flex' : 'none'}}
|
|
backgroundColor={Theme.Colors.lightGreyBackgroundColor}>
|
|
<Column align="space-evenly" crossAlign="center" padding={'16 15 0 15'}>
|
|
<Image source={Theme.DomainWarningLogo} resizeMethod="auto" />
|
|
<Text
|
|
align="center"
|
|
style={Theme.Styles.detailsText}
|
|
margin="30 15 15 15">
|
|
{t('domainWarning')}
|
|
</Text>
|
|
<Text
|
|
align="center"
|
|
margin={'30 15 0 10'}
|
|
weight="regular"
|
|
color={Theme.Colors.Icon}
|
|
style={Theme.Styles.urlContainer}>
|
|
{controller.domainName}
|
|
</Text>
|
|
</Column>
|
|
|
|
<Column padding={'0 16 14 16'}>
|
|
<Text
|
|
align="center"
|
|
weight="semibold"
|
|
style={Theme.TextStyles.smaller}
|
|
margin="0 12 10 12">
|
|
{t('checkDomain')}
|
|
</Text>
|
|
<Row
|
|
align="space-evenly"
|
|
padding={'9'}
|
|
crossAlign="center"
|
|
style={Theme.Styles.lockDomainContainer}>
|
|
<Icon name="lock" size={20} color={'grey'} type="font-awesome" />
|
|
<Text
|
|
weight="semibold"
|
|
style={Theme.TextStyles.smaller}
|
|
color={Theme.Colors.GrayIcon}>
|
|
{t('domainHead')}
|
|
</Text>
|
|
</Row>
|
|
</Column>
|
|
|
|
<Column
|
|
padding={'10'}
|
|
width={Dimensions.get('screen').width * 0.98}
|
|
style={Theme.Styles.bottomButtonsContainer}>
|
|
<Button
|
|
margin={'0 12 0 12'}
|
|
title={t('confirm')}
|
|
onPress={props.onConfirm}
|
|
styles={Theme.ButtonStyles.radius}
|
|
/>
|
|
<Button
|
|
margin={'10 12 0 12'}
|
|
type="clear"
|
|
title={t('common:cancel')}
|
|
onPress={props.onCancel}
|
|
styles={Theme.ButtonStyles.clear}
|
|
/>
|
|
</Column>
|
|
</Column>
|
|
</Modal>
|
|
);
|
|
};
|
|
|
|
interface QrLoginWarningProps {
|
|
isVisible: boolean;
|
|
onConfirm: () => void;
|
|
onCancel: () => void;
|
|
service: QrLoginRef;
|
|
}
|