Files
inji-wallet/components/ui/SquircleIconPopUpModal.tsx
Sreenadh S bad21e409c Inji 364 UI update for success messages (#863)
* feat(INJI-364): add new ui for successful activation of VC

* feat(INJI-364): update VC receive UI

* feat(INJI-364): extract banner notification component

* feat(INJI-364): re suse banner notification component

* feat(INJI-364): add successfully share popup and translations

* feat(INJI-364): use proper state for showing  the success modal

* fix(INJI-364): show activate popup in respective screens only

* refactor(INJI-364): rename props

* refactor(INJI-364): remove logs

* fix(INJI-372): fix hindi translation

* chore(INJI-364): update package-lock.json

* refactor(INJI-364): add proper testID implementation for BannerNotification

* refactor(INJI-364): remove unused imports

* refactor(INJI-364): remove multiple state set

* refactor(INJI-364): add missing testID

* refactor(INJI-364): add missing testID

* feat(INJI-364): add activated notification to esignet VC also

* chore(INJI-364): update package-lock.json
2023-09-26 21:05:22 +05:30

46 lines
1.3 KiB
TypeScript

import React from 'react';
import {Dimensions, Image, View} from 'react-native';
import {Centered, Column} from './Layout';
import {Theme} from './styleUtils';
import {Text} from './Text';
import testIDProps from '../../shared/commonUtil';
export const SquircleIconPopUpModal: React.FC<
SquircleIconPopUpModalProps
> = props => {
return (
<View
{...testIDProps(props.testId)}
style={Theme.MessageStyles.viewContainer}
onTouchStart={props.onBackdropPress}>
<Centered fill>
<Column
width={Dimensions.get('screen').width * 0.8}
height={Dimensions.get('screen').width * 0.8}
style={Theme.MessageStyles.squircleContainer}>
<Column>
{props.iconName && (
<Image source={props.iconName} style={{alignSelf: 'center'}} />
)}
{props.message && (
<Text
margin="25 0 0 0"
weight={'semibold'}
style={{fontSize: 17, textAlign: 'center'}}>
{props.message}
</Text>
)}
</Column>
</Column>
</Centered>
</View>
);
};
export interface SquircleIconPopUpModalProps {
message: string;
iconName: any;
testId: string;
onBackdropPress?: () => void;
}