sous-components-twig
Advanced tools
Comparing version 0.0.9 to 0.0.10
import React from 'react'; | ||
import card from './basic/card.twig'; | ||
import cardTwig from './basic/card.twig'; | ||
import eventCardTwig from './event/event-card.twig'; | ||
import cardData from './basic/card.yml'; | ||
import cardBgData from './basic/card-bg.yml'; | ||
import eventCardData from './event/event-card.yml'; | ||
@@ -13,9 +15,14 @@ /** | ||
export const cardExample = () => ( | ||
<div dangerouslySetInnerHTML={{ __html: card(cardData) }} /> | ||
export const card = () => ( | ||
<div dangerouslySetInnerHTML={{ __html: cardTwig(cardData) }} /> | ||
); | ||
export const cardWithBackground = () => ( | ||
<div | ||
dangerouslySetInnerHTML={{ __html: card({ ...cardData, ...cardBgData }) }} | ||
dangerouslySetInnerHTML={{ | ||
__html: cardTwig({ ...cardData, ...cardBgData }), | ||
}} | ||
/> | ||
); | ||
export const eventCard = () => ( | ||
<div dangerouslySetInnerHTML={{ __html: eventCardTwig(eventCardData) }} /> | ||
); |
{ | ||
"name": "sous-components-twig", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"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
Sorry, the diff of this file is not supported yet
439582
462