Skip to content

Commit

Permalink
Update ModalSample.stories.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vern-gora committed Nov 13, 2024
1 parent 64a6204 commit c9a11e6
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions stories/Components/UIcomponents/Modal/ModalSample.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,39 +169,10 @@ export default {

</>
)
},
design: {
type: 'figma',
url: 'https://www.figma.com/design/WJSRV3CbcHuVWRQApwvWIm/UNDP-Design-System?node-id=18682-41233&t=Mo165CNMoIASN3TS-4',
},
}
}
}

export const Example = {
parameters: {
design: {
type: 'figma',
url: 'https://www.figma.com/design/WJSRV3CbcHuVWRQApwvWIm/UNDP-Design-System?node-id=18682-41233&t=Mo165CNMoIASN3TS-4',
},
},
render: (args, { globals: { locale } }) => {
const caption = getCaptionForLocale(locale);
return (
<ModalSample
contenttile={caption.title}
contentname={caption.name}
descriptionText={caption.descriptionText}
descriptionText2={caption.descriptionText2}
button={caption.btnlabel}
alt={"modal image"}
image={img}
image2={img2}
{...args}
/>
);
},
};

const Template = (args, { globals: { locale } }) => {
const caption = getCaptionForLocale(locale);
return (
Expand All @@ -221,12 +192,3 @@ const Template = (args, { globals: { locale } }) => {

export const ModalSampleStory = Template.bind({});
ModalSampleStory.storyName = "Modal";

// export const Example = {
// parameters: {
// design: {
// type: 'figma',
// url: 'https://www.figma.com/design/WJSRV3CbcHuVWRQApwvWIm/UNDP-Design-System?m=auto&node-id=31-697&t=sq6iQxtXbxfnEi1v-1',
// },
// },
// };

0 comments on commit c9a11e6

Please sign in to comment.