From 0b06b62e51a10b11726779acf9754a7134269bb7 Mon Sep 17 00:00:00 2001 From: Roberto Hernandez Date: Mon, 19 Aug 2024 10:01:16 -0600 Subject: [PATCH] feat(emulsif-245): restructure video stories file --- src/components/videos/videos.stories.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/videos/videos.stories.js b/src/components/videos/videos.stories.js index 94723d7a..26b8eb8b 100644 --- a/src/components/videos/videos.stories.js +++ b/src/components/videos/videos.stories.js @@ -1,8 +1,9 @@ import video from './video.twig'; -import videoEmbedData from './video-embed.yml'; -import videoHTML5Data from './video-html5.yml'; +import { props as videoEmbedProps } from './video-embed.component.yml'; +import { props as videoHTML5Props } from './video-html5.component.yml'; +import { mapDataToTwig } from '../../util/dataTransformers'; import './video-embed'; /** @@ -10,5 +11,8 @@ import './video-embed'; */ export default { title: 'Components/Media' }; +const videoEmbedData = mapDataToTwig(videoEmbedProps.properties); +const videoHTML5Data = mapDataToTwig(videoHTML5Props.properties); + export const videoEmbed = () => video(videoEmbedData); export const videoHtml5 = () => video(videoHTML5Data);