Skip to content

Commit

Permalink
fix: remove unused description prop in list-item (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 authored Feb 14, 2025
1 parent 101bc29 commit 7b191ca
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 14 deletions.
4 changes: 0 additions & 4 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export { Tab } from "./components/tab-button/d-tab-button";
export namespace Components {
interface DActivityCard {
"date": string;
"description": string;
"href"?: string;
"logo": string;
"message": string;
Expand Down Expand Up @@ -137,7 +136,6 @@ export namespace Components {
}
interface DListItem {
"background"?: boolean;
"description"?: string;
"href"?: string;
"issuer"?: string;
"logoSrc"?: string;
Expand Down Expand Up @@ -626,7 +624,6 @@ declare global {
declare namespace LocalJSX {
interface DActivityCard {
"date"?: string;
"description"?: string;
"href"?: string;
"logo"?: string;
"message"?: string;
Expand Down Expand Up @@ -759,7 +756,6 @@ declare namespace LocalJSX {
}
interface DListItem {
"background"?: boolean;
"description"?: string;
"href"?: string;
"issuer"?: string;
"logoSrc"?: string;
Expand Down
3 changes: 0 additions & 3 deletions src/components/activity-card/activity.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const meta = {
`<d-vertical-stack separator> <d-activity-card
message="${args.message}"
logo="${args.logo}"
description="${args.description}"
date="${args.date}"
${args.message && `message="${args.message}"`}
${args.read && `read="${args.read}"`}
Expand All @@ -22,7 +21,6 @@ const meta = {
<d-activity-card
message="${args.message}"
logo="${args.logo}"
description="${args.description}"
date="${args.date}"
${args.message && `message="${args.message}"`}
${args.read && `read="${args.read}"`}
Expand All @@ -44,7 +42,6 @@ export const Default: Story = {
args: {
logo: `https://api.dicebear.com/7.x/open-peeps/svg?seed=${new Date()}`,
message: 'Proof of humanity is expired',
description: 'Your proof of humanity has expired. Please renew it if you need it.',
date: '1 day ago',
},
};
Expand Down
3 changes: 1 addition & 2 deletions src/components/activity-card/d-activity-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ import { Component, Host, Prop, h } from '@stencil/core';
export class DActivityCard {
@Prop({ reflect: true }) message: string;
@Prop({ reflect: true }) logo: string;
@Prop({ reflect: true }) description: string;
@Prop({ reflect: true }) date: string;
@Prop({ reflect: true }) read: boolean = false;
@Prop({ reflect: true }) href?: string;

render() {
return (
<Host>
<d-list-item name={this.message} logo-src={this.logo} href={this.href} description={this.description}>
<d-list-item name={this.message} logo-src={this.logo} href={this.href}>
<div slot="date">
<div class="flex items-center gap-2.5">
{!this.read && <d-info-led type="warning" />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const meta = {
render: args => `<d-credential-service
name="${args.name}"
issuer="${args.issuer}"
description="${args.description}"
href="${args.href}"
logo-src="${args.logoSrc}"
></d-credential-service>`,
Expand All @@ -18,7 +17,6 @@ type Story = StoryObj<Components.DCredentialService>;
export const Default: Story = {
args: {
name: 'Over 18',
description: 'Age Validation',
issuer: 'Italian Government',
logoSrc: `https://api.dicebear.com/9.x/icons/svg?seed=${new Date()}`,
},
Expand Down
2 changes: 0 additions & 2 deletions src/components/credential-service/d-credential-service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class DCredentialService {
@Prop() issuer: string;
@Prop({ attribute: 'logo-src' }) logoSrc?: string;
@Prop() organization?: string;
@Prop() description?: string;
@Prop({ reflect: true }) href?: string;


Expand All @@ -21,7 +20,6 @@ export class DCredentialService {
name={this.name}
issuer={this.issuer}
logo-src={this.logoSrc}
description={this.description}
href={this.href}
background
>
Expand Down
1 change: 0 additions & 1 deletion src/components/d-list-item/d-list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export class DListItem {
@Prop() name: string;
@Prop() issuer?: string;
@Prop({ attribute: 'logo-src' }) logoSrc?: string;
@Prop() description?: string;
@Prop({ reflect: true }) href?: string;
@Prop() background?: boolean;

Expand Down

0 comments on commit 7b191ca

Please sign in to comment.