Skip to content

Commit 608d7bf

Browse files
Refine Calendar Date Seasons code example (#1319)
1 parent 70bb584 commit 608d7bf

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/components/calendar-date/calendar-date.stories.mdx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Story, Canvas, Meta } from '@storybook/addon-docs/blocks';
2-
import { makeTwigInclude } from '../../make-twig-include';
32
import template from './calendar-date.twig';
43
import seasonsDemo from './demo/seasons.twig';
54
import './demo/styles.scss';
@@ -38,10 +37,18 @@ To add some fun and visual variety, each season has its own header color. These
3837
parameters={{
3938
docs: {
4039
source: {
41-
code: makeTwigInclude(
42-
'@cloudfour/components/calendar-date/calendar-date.twig',
43-
{ datetime: '2020-04-01' }
44-
),
40+
code: `{% include '@cloudfour/components/calendar-date/calendar-date.twig' with {
41+
datetime: '2020-04-01'
42+
} only %}
43+
{% include '@cloudfour/components/calendar-date/calendar-date.twig' with {
44+
datetime: '2020-07-04'
45+
} only %}
46+
{% include '@cloudfour/components/calendar-date/calendar-date.twig' with {
47+
datetime: '2020-10-31'
48+
} only %}
49+
{% include '@cloudfour/components/calendar-date/calendar-date.twig' with {
50+
datetime: '2020-12-31'
51+
} only %}`,
4552
},
4653
},
4754
}}

0 commit comments

Comments
 (0)