Skip to content

Commit

Permalink
fix(INJI-435): add padding and fix the activation status overflow in …
Browse files Browse the repository at this point in the history
…all languages

Signed-off-by: PuBHARGAVI <[email protected]>
  • Loading branch information
PuBHARGAVI committed Oct 20, 2023
1 parent 733e2ad commit 86e7025
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
19 changes: 7 additions & 12 deletions components/VC/MosipVCItem/MosipVCItemActivationStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ const WalletUnverifiedIcon: React.FC = () => {
size={Theme.ICON_MID_SIZE}
type="material-community"
containerStyle={{
marginStart: 5,
marginEnd: 1,
marginEnd: 5,
bottom: 1,
marginRight: -2,
}}
/>
);
Expand All @@ -32,10 +30,8 @@ const WalletVerifiedIcon: React.FC = () => {
color={Theme.Colors.VerifiedIcon}
size={Theme.ICON_MID_SIZE}
containerStyle={{
marginStart: 5,
marginEnd: 1,
marginEnd: 5,
bottom: 1,
marginRight: -2,
}}
/>
);
Expand All @@ -46,20 +42,19 @@ const WalletUnverifiedActivationDetails: React.FC<
> = props => {
const {t} = useTranslation('VcDetails');
return (
<>
<Row style={Theme.Styles.vcActivationDetailsWrapper}>
{props.verifiableCredential && <WalletUnverifiedIcon />}
<Text
color={Theme.Colors.Details}
testID="activationPending"
weight="regular"
margin="0 0 0 5"
style={
!props.verifiableCredential
? Theme.Styles.loadingTitle
: Theme.Styles.statusLabel
}
children={t('offlineAuthDisabledHeader')}></Text>
</>
</Row>
);
};

Expand All @@ -68,7 +63,7 @@ const WalletVerifiedActivationDetails: React.FC<
> = props => {
const {t} = useTranslation('WalletBinding');
return (
<>
<Row style={Theme.Styles.vcActivationDetailsWrapper}>
<WalletVerifiedIcon />
<Text
color={Theme.Colors.statusLabel}
Expand All @@ -82,15 +77,15 @@ const WalletVerifiedActivationDetails: React.FC<
: Theme.Styles.statusLabel
}
children={t('profileAuthenticated')}></Text>
</>
</Row>
);
};

export const MosipVCItemActivationStatus: React.FC<
ExistingMosipVCItemActivationStatusProps
> = props => {
return (
<Row style={Theme.Styles.vcActivationStatusWrapper}>
<Row style={Theme.Styles.vcActivationStatusContainer}>
{props.emptyWalletBindingId ? (
<WalletUnverifiedActivationDetails
verifiableCredential={props.verifiableCredential}
Expand Down
13 changes: 10 additions & 3 deletions components/ui/themes/DefaultTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ export const DefaultTheme = {
statusLabel: {
color: Colors.Gray30,
fontSize: 12,
flexWrap: 'wrap',
flexShrink: 1,
},
activationTab: {
display: 'flex',
Expand Down Expand Up @@ -230,21 +232,26 @@ export const DefaultTheme = {
},
verticalLine: {
width: 1,
height: 30,
backgroundColor: Colors.Grey,
marginVertical: 8,
},
verticalLineWrapper: {
flex: 0.1,
display: 'flex',
flex: 0.1,
height: '100%',
justifyContent: 'center',
},
vcActivationStatusWrapper: {
vcActivationStatusContainer: {
display: 'flex',
flex: 7,
alignItems: 'center',
width: '100%',
height: '100%',
padding: 5,
},
vcActivationDetailsWrapper: {
display: 'flex',
alignItems: 'flex-start',
},
closeCardBgContainer: {
borderRadius: 10,
Expand Down
13 changes: 10 additions & 3 deletions components/ui/themes/PurpleTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ export const PurpleTheme = {
statusLabel: {
color: Colors.Gray30,
fontSize: 12,
flexWrap: 'wrap',
flexShrink: 1,
},
activationTab: {
justifyContent: 'space-between',
Expand Down Expand Up @@ -233,21 +235,26 @@ export const PurpleTheme = {
},
verticalLine: {
width: 1,
height: 30,
backgroundColor: Colors.Grey,
marginVertical: 8,
},
verticalLineWrapper: {
flex: 0.1,
display: 'flex',
flex: 0.1,
height: '100%',
justifyContent: 'center',
},
vcActivationStatusWrapper: {
vcActivationStatusContainer: {
display: 'flex',
flex: 7,
alignItems: 'center',
width: '100%',
height: '100%',
padding: 5,
},
vcActivationDetailsWrapper: {
display: 'flex',
alignItems: 'flex-start',
},
closeCardBgContainer: {
borderRadius: 10,
Expand Down

0 comments on commit 86e7025

Please sign in to comment.