sous-components-twig
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -8,2 +8,3 @@ import React from 'react'; | ||
import gridCtaData from './grid-ctas.yml'; | ||
import gridEventCardData from './grid-event-cards.yml'; | ||
@@ -15,6 +16,21 @@ /** | ||
export const defaultGrid = () => <div dangerouslySetInnerHTML={{ __html: grid(gridData) }} />; | ||
export const defaultGrid = () => ( | ||
<div dangerouslySetInnerHTML={{ __html: grid(gridData) }} /> | ||
); | ||
export const cardGrid = () => ( | ||
<div dangerouslySetInnerHTML={{ __html: grid({ ...gridData, ...gridCardData }) }} />); | ||
<div | ||
dangerouslySetInnerHTML={{ __html: grid({ ...gridData, ...gridCardData }) }} | ||
/> | ||
); | ||
export const ctaGrid = () => ( | ||
<div dangerouslySetInnerHTML={{ __html: grid({ ...gridData, ...gridCtaData }) }} />); | ||
<div | ||
dangerouslySetInnerHTML={{ __html: grid({ ...gridData, ...gridCtaData }) }} | ||
/> | ||
); | ||
export const eventCardGrid = () => ( | ||
<div | ||
dangerouslySetInnerHTML={{ | ||
__html: grid({ ...gridData, ...gridEventCardData }), | ||
}} | ||
/> | ||
); |
{ | ||
"name": "sous-components-twig", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Twig components for a fictitious Sous install", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
451658
146
508