Skip to content

Commit

Permalink
docs(storybook): run storiesof-to-csf codemod
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones committed Oct 28, 2020
1 parent 1c41b26 commit b66aa3c
Show file tree
Hide file tree
Showing 75 changed files with 16,988 additions and 15,752 deletions.
4 changes: 2 additions & 2 deletions .storybook/__snapshots__/Welcome.story.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ exports[`Storybook Snapshot tests and console checks Storyshots 0/Getting Starte
onAnimationEnd={[Function]}
>
<button
aria-controls="accordion-item-10"
aria-controls="accordion-item-1"
aria-expanded={false}
className="bx--accordion__heading"
onClick={[Function]}
Expand Down Expand Up @@ -89,7 +89,7 @@ exports[`Storybook Snapshot tests and console checks Storyshots 0/Getting Starte
</button>
<div
className="bx--accordion__content"
id="accordion-item-10"
id="accordion-item-1"
>
<p>
The following table shows a comparison of exports from carbon-components-react and this library. These are primarily used for snapshot purposes to track and ensure that as the exports change upstream in Carbon we continue to provide parity with their package.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exports[`Storybook Snapshot tests and console checks Storyshots Watson IoT/Accor
onAnimationEnd={[Function]}
>
<button
aria-controls="accordion-item-11"
aria-controls="accordion-item-2"
aria-expanded={false}
className="bx--accordion__heading"
onClick={[Function]}
Expand Down Expand Up @@ -58,7 +58,7 @@ exports[`Storybook Snapshot tests and console checks Storyshots Watson IoT/Accor
</button>
<div
className="bx--accordion__content"
id="accordion-item-11"
id="accordion-item-2"
>
<p>
This content is always rendered to the DOM, no matter if the accordion item has been open or closed.
Expand All @@ -72,7 +72,7 @@ exports[`Storybook Snapshot tests and console checks Storyshots Watson IoT/Accor
onAnimationEnd={[Function]}
>
<button
aria-controls="accordion-item-12"
aria-controls="accordion-item-3"
aria-expanded={false}
className="bx--accordion__heading"
onClick={[Function]}
Expand Down Expand Up @@ -102,7 +102,7 @@ exports[`Storybook Snapshot tests and console checks Storyshots Watson IoT/Accor
</button>
<div
className="bx--accordion__content"
id="accordion-item-12"
id="accordion-item-3"
/>
</li>
</ul>
Expand Down
17 changes: 12 additions & 5 deletions src/components/AddCard/AddCard.story.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';

import AddCard from './AddCard';
Expand All @@ -9,8 +8,16 @@ const AddCardProps = {
title: 'Click me',
};

storiesOf('Watson IoT/AddCard', module)
.addParameters({
export default {
title: 'Watson IoT/AddCard',

parameters: {
component: AddCard,
})
.add('handles click', () => <AddCard {...AddCardProps} />);
},
};

export const HandlesClick = () => <AddCard {...AddCardProps} />;

HandlesClick.story = {
name: 'handles click',
};
Loading

0 comments on commit b66aa3c

Please sign in to comment.