Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Make a story with multiple reviews
Browse files Browse the repository at this point in the history
This helps us better reflect the name of the component - which is in
singulat - Review.
  • Loading branch information
Adamik10 committed Aug 1, 2022
1 parent 1e46547 commit 838a4b3
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/stories/Library/review/Review.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default {
argTypes: {
numberOfReviews: {
defaultValue: 1,
control: { type: null },
},
meta: {
defaultValue: "Berlingske tidende, 2021.03.19",
Expand Down Expand Up @@ -47,5 +48,17 @@ const Template: ComponentStory<typeof ReviewsComp> = (args) => {
return <ReviewsComp {...args} />;
};

export const Default = Template.bind({});
Default.args = {};
export const Single = Template.bind({});
Single.args = {};

// Show multiple reviews to showcase different spacing
export const Multiple = Template.bind({});
Multiple.args = {
numberOfReviews: 2,
meta: "Berlingske tidende, 2021.03.19",
hearts: 2,
headline: "Headline",
body: "Body text.",
linkLink: "/",
linkText: "Berlingske tidende, 2021.03.19",
};

0 comments on commit 838a4b3

Please sign in to comment.