Files
inji-wallet/screens/Home/MyVcs/BindingVcWarningOverlay.tsx
jaswanthkumartw 58dea5f6c4 Injimob-3622-develop: Revert all the old branding changes (#2159)
* Revert "[INJIMOB-3622] Fix alignment in history screen  (#2140)"

This reverts commit a0b08914e5.

Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com>

* Revert "Injimob [3622] [3627] - BANNER ISSUE AND BRANDING CHANGES ISSUES  (#2130)"

This reverts commit 522104811c.

Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com>

* Revert "[INJIMOB-3633][INJIMOB-3636] fix icon bg color across app (#2134)"

This reverts commit d8d718693d.

Signed-off-by: jaswanthkumarpolisetty <jaswanthkumar.p@thoughtworks.com>

* Revert "[INJIMOB-3633] fix search bar clear icon not apperaing (#2133)"

This reverts commit 6a202b11af.

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>
2025-12-03 18:38:01 +05:30

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;
}