Skip to content

Commit

Permalink
Merge pull request #327 from Sitecore/fix-hero-component-storybook
Browse files Browse the repository at this point in the history
Fixing arguments for JSS Hero Component
  • Loading branch information
lovesitecore authored Jan 26, 2024
2 parents 9add818 + d45a571 commit f003e55
Showing 1 changed file with 29 additions and 13 deletions.
42 changes: 29 additions & 13 deletions src/Project/Sugcon2024/Sugcon/src/components/Hero/Hero.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Meta } from '@storybook/react';
//import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react';

import { Default } from './Hero';

Expand All @@ -14,18 +13,35 @@ const meta = {
} satisfies Meta<typeof Default>;

export default meta;
/*type Story = StoryObj<typeof meta>;
type Story = StoryObj<typeof meta>;

export const Primary: Story = {
args: {
title: 'An event from the community for the community',
date: 'October 5-6th',
description:
'Get ready to experience the ultimate Sitecore conference of the year at SUGCON North America in Minneapolis, Minnesota.',
buttonText: 'Register now',
imageUrl: 'https://picsum.photos/1200/800',
callToActionLink: '',
params: {
styles: '',
},
fields: {
Title: {
value: 'An event from the community for the community',
},
Date: {
value: 'October 5-6th',
},
Description: {
value:
'Get ready to experience the ultimate Sitecore conference of the year at SUGCON North America in Minneapolis, Minnesota.',
},
CallToAction: {
value: {
target: '',
text: 'Register now',
},
},
Image: {
value: {
src: 'https://picsum.photos/1200/800',
},
},
},
},
};*/
};

0 comments on commit f003e55

Please sign in to comment.