From 2f3770c4a1e12f08d6653d3090b4f42cb9567831 Mon Sep 17 00:00:00 2001 From: Oksamies Date: Thu, 17 Oct 2024 12:02:09 +0300 Subject: [PATCH] Make PackageCardReference in SB have all static props --- .../stories/components/PackageCard.stories.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/cyberstorm-storybook/stories/components/PackageCard.stories.tsx b/apps/cyberstorm-storybook/stories/components/PackageCard.stories.tsx index eb4992f6b..7a4a423fc 100644 --- a/apps/cyberstorm-storybook/stories/components/PackageCard.stories.tsx +++ b/apps/cyberstorm-storybook/stories/components/PackageCard.stories.tsx @@ -33,6 +33,9 @@ const Template: StoryFn = (args) => ( ); +const updatedString = new Date(); +updatedString.setDate(updatedString.getDate() - 1234); + const ReferencePackageCard = Template.bind({}); ReferencePackageCard.args = { package: { @@ -45,7 +48,7 @@ ReferencePackageCard.args = { download_count: 2707, rating_count: 1, size: 106299, - last_updated: "2023-02-28T11:23:42.000000Z", + last_updated: updatedString.toISOString(), is_pinned: false, is_nsfw: false, is_deprecated: false,