Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing arguments for JSS Hero Component #327

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
},
},
},
},
};*/
};
Loading