Skip to content

Commit

Permalink
fix: DS credential card crash
Browse files Browse the repository at this point in the history
  • Loading branch information
gispada committed Oct 31, 2024
1 parent e0eaaf7 commit 2d92477
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions ts/features/design-system/core/DSCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,46 +387,45 @@ const ServicesCards = () => (

const ItwCards = () => (
<VStack space={blockMargin}>
<DesignSystemSection title="eID">
<DesignSystemSection title="Driving License">
<VStack space={componentMargin}>
<DSComponentViewerBox name="Preview">
<ItwCredentialCard
credentialType={CredentialType.PID}
credentialType={CredentialType.DRIVING_LICENSE}
isPreview={true}
/>
</DSComponentViewerBox>
<DSComponentViewerBox name="Valid">
<ItwCredentialCard credentialType={CredentialType.PID} />
<ItwCredentialCard credentialType={CredentialType.DRIVING_LICENSE} />
</DSComponentViewerBox>
<DSComponentViewerBox name="Invalid">
<ItwCredentialCard
credentialType={CredentialType.DRIVING_LICENSE}
status="invalid"
/>
</DSComponentViewerBox>
<DSComponentViewerBox name="Expired">
<ItwCredentialCard
credentialType={CredentialType.PID}
credentialType={CredentialType.DRIVING_LICENSE}
status="expired"
/>
</DSComponentViewerBox>
</VStack>
</DesignSystemSection>
<DesignSystemSection title="Driving License">
<VStack space={componentMargin}>
<DSComponentViewerBox name="Preview">
<DSComponentViewerBox name="Expiring">
<ItwCredentialCard
credentialType={CredentialType.DRIVING_LICENSE}
isPreview={true}
status="expiring"
/>
</DSComponentViewerBox>
<DSComponentViewerBox name="Valid">
<ItwCredentialCard credentialType={CredentialType.DRIVING_LICENSE} />
</DSComponentViewerBox>
<DSComponentViewerBox name="Expired">
<DSComponentViewerBox name="Expired Digital Credential">
<ItwCredentialCard
credentialType={CredentialType.DRIVING_LICENSE}
status="expired"
status="jwtExpired"
/>
</DSComponentViewerBox>
<DSComponentViewerBox name="Expiring">
<DSComponentViewerBox name="Expiring Digital Credential">
<ItwCredentialCard
credentialType={CredentialType.DRIVING_LICENSE}
status="expiring"
status="jwtExpiring"
/>
</DSComponentViewerBox>
</VStack>
Expand Down

0 comments on commit 2d92477

Please sign in to comment.