sous-components-twig
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -11,3 +11,2 @@ import React from 'react'; | ||
import mainMenuData from '../../02-molecules/menus/main-menu/main-menu.yml'; | ||
import breadcrumbData from '../../02-molecules/menus/breadcrumbs/breadcrumbs.yml'; | ||
import socialMenuData from '../../02-molecules/menus/social/social-menu.yml'; | ||
@@ -21,20 +20,18 @@ import footerMenuData from '../../02-molecules/menus/inline/inline-menu.yml'; | ||
// TODO: Can't figure out how to link pages with hrefTo and storiesOf. | ||
storiesOf('Pages/Landing Pages', module) | ||
.add('Home', () => { | ||
useEffect(() => Drupal.attachBehaviors(), []); | ||
return ( | ||
<div dangerouslySetInnerHTML={{ | ||
storiesOf('Pages/Landing Pages', module).add('Home', () => { | ||
useEffect(() => Drupal.attachBehaviors(), []); | ||
return ( | ||
<div | ||
dangerouslySetInnerHTML={{ | ||
__html: home({ | ||
page_layout_modifier: 'contained', | ||
...mainMenuData, | ||
...breadcrumbData, | ||
...socialMenuData, | ||
...footerMenuData, | ||
card_link_url: url, | ||
card__link__text: 'Click here', | ||
}), | ||
}} | ||
/> | ||
); | ||
}); | ||
/> | ||
); | ||
}); | ||
}); |
{ | ||
"name": "sous-components-twig", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"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
459726
155
528