Skip to content

Commit

Permalink
fix: credential component layout
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Oct 3, 2023
1 parent a1e5ff6 commit 9a8adc0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/agent-explore/src/pages/settings/Plugins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const communityPlugins: IAgentExplorerPlugin[] = [
},
{
config: {
url: 'https://cdn.jsdelivr.net/gh/simonas-notcat/agent-explorer-plugin-codyfight/dist/plugin.js',
url: 'https://cdn.jsdelivr.net/gh/simonas-notcat/agent-explorer-plugin-codyfight@main/dist/plugin.js',
enabled: true,
},
name: 'Codyfight',
Expand Down
7 changes: 6 additions & 1 deletion packages/plugin/src/components/CredentialSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ export const CredentialSummary: React.FC<CredentialSummaryProps> = ({
</Typography.Text>
</IdentifierPopover>

<Tag>{credential.verifiableCredential.type && credential.verifiableCredential.type[1]}</Tag>
{credential.verifiableCredential.type
&& Array.isArray(credential.verifiableCredential.type)
&& credential.verifiableCredential.type.map((type: string, index: number) => {
if (type === 'VerifiableCredential') return null
return <Tag key={index}>{type}</Tag>
})}
<Typography.Text type='secondary'>{formatRelative(
new Date(credential.verifiableCredential.issuanceDate),
new Date()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const VerifiableCredentialComponent = (
</div>

</Col>
<Col xs={1}>
<Col xs={1} style={{marginRight: token.padding}}>
<CredentialActionsDropdown uniqueCredential={credential}>

<Button type="text" size="small"><EllipsisOutlined /></Button>
Expand Down

0 comments on commit 9a8adc0

Please sign in to comment.