mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 13:38:01 -05:00
[INJIMOB-2313]: modify fallback colors for vc rendering (#1716)
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com> Co-authored-by: adityankannan-tw <adityan410pm@gmail.com>
This commit is contained in:
@@ -104,7 +104,7 @@ export const VCCardViewContent: React.FC<VCItemContentProps> = props => {
|
||||
<KebabPopUp
|
||||
iconColor={getTextColor(
|
||||
props.wellknown,
|
||||
Theme.Colors.helpText,
|
||||
Theme.Colors.blackIcon,
|
||||
)}
|
||||
vcMetadata={props.vcMetadata}
|
||||
iconName="dots-three-horizontal"
|
||||
|
||||
@@ -114,7 +114,7 @@ export const VCDetailView: React.FC<VCItemDetailsProps> = props => {
|
||||
{
|
||||
borderBottomColor: getTextColor(
|
||||
props.wellknown,
|
||||
Theme.Styles.hrLine.borderBottomColor,
|
||||
Theme.Colors.blackIcon,
|
||||
),
|
||||
},
|
||||
]}></View>
|
||||
|
||||
@@ -14,7 +14,7 @@ export const VCItemFieldName = ({fieldName, wellknown, testID}) => {
|
||||
{fieldName && (
|
||||
<Text
|
||||
testID={`${testID}Title`}
|
||||
color={getTextColor(wellknown, Theme.Colors.DetailsLabel)}
|
||||
color={getTextColor(wellknown, Theme.Colors.Details)}
|
||||
style={Theme.Styles.fieldItemTitle}>
|
||||
{fieldName}
|
||||
</Text>
|
||||
|
||||
@@ -101,7 +101,7 @@ export const getFieldName = (field: string, wellknown: any) => {
|
||||
export const getBackgroundColour = (wellknown: any) => {
|
||||
return {
|
||||
backgroundColor:
|
||||
wellknown?.display[0]?.background_color ?? Theme.Colors.textValue,
|
||||
wellknown?.display[0]?.background_color ?? Theme.Colors.whiteBackgroundColor,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user