Skip to content

Commit

Permalink
Make PackageCardReference in SB have all static props
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksamies committed Oct 17, 2024
1 parent d61d0f4 commit 2f3770c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ const Template: StoryFn<typeof PackageCard> = (args) => (
</div>
);

const updatedString = new Date();
updatedString.setDate(updatedString.getDate() - 1234);

const ReferencePackageCard = Template.bind({});
ReferencePackageCard.args = {
package: {
Expand All @@ -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,
Expand Down

0 comments on commit 2f3770c

Please sign in to comment.