Files
inji-wallet/components/VerifiedIcon.tsx
PuBHARGAVI 73630d84a0 [Injimob 695] Show Banner message based on vc verification call response (#1408)
* [INJIMOB-695] create a enum for all the banner status types and use it in all places

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] add isVerified attribute in the vcMetadata to store verification status and disable activation if verification is pending

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] hide share, share with selfie and activation options in kebabe menu if verification is pending

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] pass tooltip component and trigger component styles as props to custom tooltip component

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] show info icon next to status in detail view and show the tool tip component when user clicks on it

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] show pending icon in card and detailed view if verification is pending

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] give max height to kebab menu to remove the extra space when there are few options

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] rename the info icon to colored info and add black color info icon to show it in detailed view and adjust the styles of help icon in home screen

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] pass the new argument to the setTextColor to set the default color to the components if wellknown is not available

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] add a logic in wellknown config api method to get the fields properly from credentials supported attribute of api response based on its type

if credential supported field value is array we will use the logic as it is if it's value is of type object we will compare the credential types which we got in the wellknown api response with the credential types of the VC

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] show the kebab menu icon color properly based on the position where we are showing it in ui

In detail view we are using svg image directly so no need to pass icon color and in card view if we have wellknown we will use the text color which we got in config api response otherwise we will set the default color

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] add default value to the selected vc context variable in home screen machine

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] add missing translations and translations for verification success and failure states

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] rename verification banner info translation from verification retrigger to info in all local files

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] add translation for pending status in all locale files

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] adjust the styles of detailed view info icon tool tip component

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] show kebab menu icon in detailed view only after getting the response from wellknown config api call and rendering the VC details

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] show vc's in select vc screen in sharing flow only if they are verified by digital bazar

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] adjust the styles of help icon and label in home screen

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] initiate the verification call to digital bazar library and show the banner notification in detailed view based on the response

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] replace setCredential action with setContext action in vcItemMachine

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] handle different verification status banner scenarios in vc item and meta machines

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] add translations for vc verification banner in all languages

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] change the name of verification status type info to in progress in all places

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] fix minor issues in verification flow

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] fix some of the usecases in verification flow

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] fix the styles of vc verification status in detailed view

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] show the card type value in chosen language

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] remove unnecessary format change in QrConsent file

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] remove the banner if the verification is done and the user moves to other screen

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] fix spelling mistakes and rename few variables to make them more meaningful

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] change the method name from setTextColor to getTextColor and move it to vcUtils file

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] change the method name from setBackgroundColor to getBackgroundColor in vcUtils file

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] remove translations related to lock and revoke from all locale files

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] convert detailed view status tool tip translations into object format in all local files

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] chanage vcItemMachine existing state name to vcUtilitiesState

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] change the name of sendVcUpdated to updateVcMetadata in vcItemMachine

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-695] remove useBannerNotificationContainer controller file and add those events in useBannerNotification itself

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

---------

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
2024-05-08 09:19:03 +05:30

22 lines
535 B
TypeScript

import React from 'react';
import {View} from 'react-native';
import {Icon} from 'react-native-elements';
import {Theme} from './ui/styleUtils';
const VerifiedIcon: React.FC = () => {
return (
<View style={Theme.Styles.verificationStatusIconContainer}>
<View style={Theme.Styles.verificationStatusIconInner}>
<Icon
testID="statusIcon"
name="check-circle"
color={Theme.Colors.VerifiedIcon}
size={12}
/>
</View>
</View>
);
};
export default VerifiedIcon;