mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-10 14:07:59 -05:00
Merge pull request #9 from ravikp/change-VC-share-screen-UI
Change VC UI in sharing ID screen.
This commit is contained in:
@@ -29,27 +29,6 @@ const VerifiedIcon: React.FC = () => {
|
||||
};
|
||||
|
||||
const getDetails = (arg1, arg2, verifiableCredential) => {
|
||||
if (arg1 === 'Full Name') {
|
||||
return (
|
||||
<Column>
|
||||
<Text color={Theme.Colors.DetailsLabel} size="smaller">
|
||||
{arg1}
|
||||
</Text>
|
||||
<Text
|
||||
numLines={4}
|
||||
color={Theme.Colors.Details}
|
||||
weight="bold"
|
||||
size="smaller"
|
||||
style={
|
||||
!verifiableCredential
|
||||
? Theme.Styles.loadingTitle
|
||||
: Theme.Styles.subtitle
|
||||
}>
|
||||
{!verifiableCredential ? '' : arg2}
|
||||
</Text>
|
||||
</Column>
|
||||
);
|
||||
}
|
||||
if (arg1 === 'Status') {
|
||||
return (
|
||||
<Column>
|
||||
@@ -79,7 +58,7 @@ const getDetails = (arg1, arg2, verifiableCredential) => {
|
||||
{arg1}
|
||||
</Text>
|
||||
<Text
|
||||
numLines={1}
|
||||
numLines={4}
|
||||
color={Theme.Colors.Details}
|
||||
weight="bold"
|
||||
size="smaller"
|
||||
@@ -114,18 +93,9 @@ export const SingleVcItem: React.FC<VcItemProps> = (props) => {
|
||||
? ''
|
||||
: getLocalizedField(verifiableCredential.credentialSubject.fullName);
|
||||
|
||||
const selectableOrCheck = props.selectable ? (
|
||||
<CheckBox
|
||||
checked={props.selected}
|
||||
checkedIcon={<Icon name="radio-button-checked" />}
|
||||
uncheckedIcon={<Icon name="radio-button-unchecked" />}
|
||||
onPress={() => props.onPress(service)}
|
||||
/>
|
||||
) : null;
|
||||
|
||||
return (
|
||||
<Pressable
|
||||
style={Theme.Styles.closeCardBgContainer}
|
||||
style={Theme.Styles.selectedBindedVc}
|
||||
onPress={() => props.onPress(service)}>
|
||||
<ImageBackground
|
||||
source={!verifiableCredential ? null : Theme.CloseCard}
|
||||
@@ -170,9 +140,7 @@ export const SingleVcItem: React.FC<VcItemProps> = (props) => {
|
||||
</Column>
|
||||
</Column>
|
||||
|
||||
{verifiableCredential ? (
|
||||
selectableOrCheck
|
||||
) : (
|
||||
{!verifiableCredential && (
|
||||
<RotatingIcon name="sync" color={Theme.Colors.rotatingIcon} />
|
||||
)}
|
||||
</Row>
|
||||
|
||||
@@ -139,15 +139,6 @@ export const VcItem: React.FC<VcItemProps> = (props) => {
|
||||
? ''
|
||||
: getLocalizedField(verifiableCredential.credentialSubject.fullName);
|
||||
|
||||
const selectableOrCheck = props.selectable ? (
|
||||
<CheckBox
|
||||
checked={props.selected}
|
||||
checkedIcon={<Icon name="radio-button-checked" />}
|
||||
uncheckedIcon={<Icon name="radio-button-unchecked" />}
|
||||
onPress={() => props.onPress(service)}
|
||||
/>
|
||||
) : null;
|
||||
|
||||
const tag = useSelector(service, selectTag);
|
||||
|
||||
return (
|
||||
@@ -229,9 +220,7 @@ export const VcItem: React.FC<VcItemProps> = (props) => {
|
||||
</Column>
|
||||
</Column>
|
||||
|
||||
{verifiableCredential ? (
|
||||
selectableOrCheck
|
||||
) : (
|
||||
{!verifiableCredential && (
|
||||
<RotatingIcon name="sync" color={Theme.Colors.rotatingIcon} />
|
||||
)}
|
||||
</Row>
|
||||
|
||||
@@ -119,7 +119,7 @@ export const DefaultTheme = {
|
||||
borderRadius: 10,
|
||||
margin: 5,
|
||||
borderWidth: 2,
|
||||
borderColor: Colors.Orange,
|
||||
borderColor: Colors.Green,
|
||||
},
|
||||
labelPartContainer: {
|
||||
marginLeft: 16,
|
||||
|
||||
Reference in New Issue
Block a user