mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
* Revert "[INJIMOB-3622] Fix alignment in history screen (#2140)" This reverts commita0b08914e5. Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> * Revert "Injimob [3622] [3627] - BANNER ISSUE AND BRANDING CHANGES ISSUES (#2130)" This reverts commit522104811c. Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> * Revert "[INJIMOB-3633][INJIMOB-3636] fix icon bg color across app (#2134)" This reverts commitd8d718693d. Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> * Revert "[INJIMOB-3633] fix search bar clear icon not apperaing (#2133)" This reverts commit6a202b11af. Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> * Injimob-3651: revert all the old branding changes and add new changes #2150 Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> * [INJIMOB-3651]: Update all the test snapshots Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com> --------- Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com>
74 lines
1.9 KiB
TypeScript
74 lines
1.9 KiB
TypeScript
import React from 'react';
|
|
import {useTranslation} from 'react-i18next';
|
|
import {Dimensions} from 'react-native';
|
|
import {Overlay} from 'react-native-elements';
|
|
import {Button, Column, Text, Row} from '../../../components/ui';
|
|
import {Theme} from '../../../components/ui/styleUtils';
|
|
import {SvgImage} from '../../../components/ui/svg';
|
|
|
|
export const BindingVcWarningOverlay: React.FC<
|
|
BindingVcWarningProps
|
|
> = props => {
|
|
const {t} = useTranslation('BindingVcWarningOverlay');
|
|
|
|
return (
|
|
<Overlay
|
|
isVisible={props.isVisible}
|
|
overlayStyle={Theme.BindingVcWarningOverlay.overlay}>
|
|
<Column
|
|
align="space-between"
|
|
crossAlign="center"
|
|
padding={'10'}
|
|
width={Dimensions.get('screen').width * 0.8}
|
|
height={Dimensions.get('screen').height * 0}>
|
|
<Row align="center" crossAlign="center" margin={'0 80 -10 0'}>
|
|
{SvgImage.WarningLogo()}
|
|
<Text
|
|
margin={'0 0 0 -80'}
|
|
color={Theme.Colors.whiteText}
|
|
weight="bold">
|
|
!
|
|
</Text>
|
|
</Row>
|
|
|
|
<Column crossAlign="center" margin="0 0 30 0">
|
|
<Text testID="alert" weight="semibold">
|
|
{t('alert')}
|
|
</Text>
|
|
|
|
<Text
|
|
testID="warningMsg"
|
|
align="center"
|
|
size="small"
|
|
weight="semibold"
|
|
color={Theme.Colors.GrayText}>
|
|
{t('BindingWarning')}
|
|
</Text>
|
|
</Column>
|
|
|
|
<Button
|
|
testID="yesConfirm"
|
|
margin={'30 0 0 0'}
|
|
type="gradient"
|
|
title={t('yesConfirm')}
|
|
onPress={props.onConfirm}
|
|
/>
|
|
|
|
<Button
|
|
testID="no"
|
|
margin={'10 0 0 0'}
|
|
type="clear"
|
|
title={t('no')}
|
|
onPress={props.onCancel}
|
|
/>
|
|
</Column>
|
|
</Overlay>
|
|
);
|
|
};
|
|
|
|
interface BindingVcWarningProps {
|
|
isVisible: boolean;
|
|
onConfirm: () => void;
|
|
onCancel: () => void;
|
|
}
|