From e1e670d7ff629761c45964d95a10dd09ea0980fb Mon Sep 17 00:00:00 2001 From: phoebus-84 Date: Fri, 13 Dec 2024 10:49:31 +0100 Subject: [PATCH 1/2] fix: activity href --- src/components.d.ts | 2 ++ src/components/activity-card/d-activity-card.tsx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components.d.ts b/src/components.d.ts index 72faa6e..8ef436c 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -13,6 +13,7 @@ export namespace Components { interface DActivityCard { "date": string; "description": string; + "href"?: string; "logo": string; "message": string; "read": boolean; @@ -613,6 +614,7 @@ declare namespace LocalJSX { interface DActivityCard { "date"?: string; "description"?: string; + "href"?: string; "logo"?: string; "message"?: string; "read"?: boolean; diff --git a/src/components/activity-card/d-activity-card.tsx b/src/components/activity-card/d-activity-card.tsx index 2904461..09bbd31 100644 --- a/src/components/activity-card/d-activity-card.tsx +++ b/src/components/activity-card/d-activity-card.tsx @@ -11,11 +11,12 @@ export class DActivityCard { @Prop({ reflect: true }) description: string; @Prop({ reflect: true }) date: string; @Prop({ reflect: true }) read: boolean = false; + @Prop({ reflect: true }) href?: string; render() { return ( - +
{!this.read && } From 3b4d1a214351cb4161b5f31dadd5b14fbacb73ec Mon Sep 17 00:00:00 2001 From: phoebus-84 Date: Fri, 13 Dec 2024 11:21:25 +0100 Subject: [PATCH 2/2] tests: update activity test --- src/components/activity-card/test/d-activity-card.spec.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/activity-card/test/d-activity-card.spec.tsx b/src/components/activity-card/test/d-activity-card.spec.tsx index 872c71f..1ee1463 100644 --- a/src/components/activity-card/test/d-activity-card.spec.tsx +++ b/src/components/activity-card/test/d-activity-card.spec.tsx @@ -10,7 +10,7 @@ describe('d-activity-card', () => { expect(page.root).toEqualHtml(` - +