sous-components-twig
Advanced tools
Comparing version 0.0.27 to 0.0.28
import React from 'react'; | ||
import cta from './cta.twig'; | ||
import ctaTwig from './cta.twig'; | ||
import ctaData from './cta.yml'; | ||
import ctaHomeData from './cta~home.yml'; | ||
@@ -10,6 +11,9 @@ /** | ||
*/ | ||
export default { title: 'Molecules/CTA' }; | ||
export default { title: 'Molecules/CTAs' }; | ||
export const ctaExample = () => ( | ||
<div dangerouslySetInnerHTML={{ __html: cta(ctaData) }} /> | ||
export const cta = () => ( | ||
<div dangerouslySetInnerHTML={{ __html: ctaTwig(ctaData) }} /> | ||
); | ||
export const ctaHome = () => ( | ||
<div dangerouslySetInnerHTML={{ __html: ctaTwig(ctaHomeData) }} /> | ||
); |
{ | ||
"name": "sous-components-twig", | ||
"version": "0.0.27", | ||
"version": "0.0.28", | ||
"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
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
Sorry, the diff of this file is not supported yet
167
864
485835