Skip to content

Commit

Permalink
refactor(angular): move decorators examples in Core / Decorators / ***
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaudAV committed Feb 15, 2021
1 parent e366cab commit d7f0e0f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storyshots Core / Decorators Angular Legacy Rendering 1`] = `
exports[`Storyshots Core / Decorators / ComponentWrapperDecorator Angular Legacy Rendering 1`] = `
<storybook-wrapper>
Grandparent<br /><div
style="margin: 3em; border:solid;"
Expand All @@ -15,7 +15,7 @@ exports[`Storyshots Core / Decorators Angular Legacy Rendering 1`] = `
</storybook-wrapper>
`;

exports[`Storyshots Core / Decorators With Component 1`] = `
exports[`Storyshots Core / Decorators / ComponentWrapperDecorator With Component 1`] = `
<storybook-wrapper>
Grandparent<br /><div
style="margin: 3em; border:solid;"
Expand All @@ -39,7 +39,7 @@ exports[`Storyshots Core / Decorators With Component 1`] = `
</storybook-wrapper>
`;

exports[`Storyshots Core / Decorators With Component Wrapper Decorator 1`] = `
exports[`Storyshots Core / Decorators / ComponentWrapperDecorator With Component Wrapper Decorator 1`] = `
<storybook-wrapper>
Grandparent<br /><div
style="margin: 3em; border:solid;"
Expand Down Expand Up @@ -78,7 +78,7 @@ exports[`Storyshots Core / Decorators With Component Wrapper Decorator 1`] = `
</storybook-wrapper>
`;

exports[`Storyshots Core / Decorators With Component Wrapper Decorator And Args 1`] = `
exports[`Storyshots Core / Decorators / ComponentWrapperDecorator With Component Wrapper Decorator And Args 1`] = `
<storybook-wrapper>
Grandparent<br /><div
style="margin: 3em; border:solid;"
Expand Down Expand Up @@ -117,7 +117,7 @@ exports[`Storyshots Core / Decorators With Component Wrapper Decorator And Args
</storybook-wrapper>
`;

exports[`Storyshots Core / Decorators With Component Wrapper Decorator And Props 1`] = `
exports[`Storyshots Core / Decorators / ComponentWrapperDecorator With Component Wrapper Decorator And Props 1`] = `
<storybook-wrapper>
Grandparent<br /><div
style="margin: 3em; border:solid;"
Expand Down Expand Up @@ -158,7 +158,7 @@ exports[`Storyshots Core / Decorators With Component Wrapper Decorator And Props
</storybook-wrapper>
`;

exports[`Storyshots Core / Decorators With Custom Decorator 1`] = `
exports[`Storyshots Core / Decorators / ComponentWrapperDecorator With Custom Decorator 1`] = `
<storybook-wrapper>
Grandparent<br /><div
style="margin: 3em; border:solid;"
Expand All @@ -173,7 +173,7 @@ exports[`Storyshots Core / Decorators With Custom Decorator 1`] = `
</storybook-wrapper>
`;

exports[`Storyshots Core / Decorators With Legacy Component 1`] = `
exports[`Storyshots Core / Decorators / ComponentWrapperDecorator With Legacy Component 1`] = `
<storybook-wrapper>
Grandparent<br /><div
style="margin: 3em; border:solid;"
Expand All @@ -197,7 +197,7 @@ exports[`Storyshots Core / Decorators With Legacy Component 1`] = `
</storybook-wrapper>
`;

exports[`Storyshots Core / Decorators With Template 1`] = `
exports[`Storyshots Core / Decorators / ComponentWrapperDecorator With Template 1`] = `
<storybook-wrapper>
Grandparent<br /><div
style="margin: 3em; border:solid;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ChildComponent from './child.component';
import ParentComponent from './parent.component';

export default {
title: 'Core / Decorators',
title: 'Core / Decorators / ComponentWrapperDecorator',
component: ChildComponent,
decorators: [
componentWrapperDecorator(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storyshots Core / Theme Decorators Base 1`] = `
exports[`Storyshots Core / Decorators / Theme Decorators Base 1`] = `
<storybook-wrapper>
<div
class="light-theme"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { componentWrapperDecorator, Meta } from '@storybook/angular';

export default {
title: 'Core / Theme Decorators',
title: 'Core / Decorators / Theme Decorators',
decorators: [
componentWrapperDecorator(
(story) => `<div [class]="myTheme">${story}</div>`,
Expand Down

0 comments on commit d7f0e0f

Please sign in to comment.