Skip to content

Commit

Permalink
Revert story changes in flash story.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArinzeJeffrey-droid committed Jul 28, 2023
1 parent 191e899 commit 161dc88
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions scss/bitstyles/atoms/flash/flash.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Dropdown from '../dropdown/Dropdown';
import Flash from './Flash';

export default {
Expand Down Expand Up @@ -33,41 +32,6 @@ export default {

const Template = (args) => Flash(args);
const dummyOnClick = () => {};
const dropdownDecorator = (story) => {
const render = `
<ul class="u-list-none">
<li>${story().outerHTML}</li>
<li>${
story({
args: {
onClick: dummyOnClick,
icon: 'question-circle',
theme: 'warning',
},
}).outerHTML
}</li>
<li>${
story({
args: {
onClick: dummyOnClick,
icon: 'question-circle',
theme: 'danger',
},
}).outerHTML
}</li>
<li>${
story({
args: {
onClick: dummyOnClick,
icon: 'question-circle',
theme: 'positive',
},
}).outerHTML
}</li>
</ul>
`;
return Dropdown({ children: render });
};

// ***** Theme variants ****************** //

Expand All @@ -77,7 +41,6 @@ Base.parameters = {
zeplinLink:
'https://app.zeplin.io/styleguide/63079b90d0bf4a646c46c227/components?coid=6331bd93290bbf15ece3af28',
};
Base.decorators = [dropdownDecorator];

export const Danger = Template.bind({});
Danger.args = { theme: 'danger' };
Expand Down Expand Up @@ -171,14 +134,3 @@ PositiveIconButton.parameters = {
zeplinLink:
'https://app.zeplin.io/styleguide/63079b90d0bf4a646c46c227/components?coid=6331bd96d1e9ea1a4033367b',
};

export const InDropdown = Template.bind({});
InDropdown.args = {
icon: 'info-circle',
onClick: dummyOnClick,
children: 'In dropdown',
};
InDropdown.parameters = {
zeplinLink: 'https://zpl.io/8lBBP44',
};
InDropdown.decorators = [dropdownDecorator];

0 comments on commit 161dc88

Please sign in to comment.