From 41da237311e527f3527cc65bb033c3f7afec41b2 Mon Sep 17 00:00:00 2001 From: basilgood Date: Mon, 29 Jul 2024 11:36:11 +0300 Subject: [PATCH] chore: images path --- stories/cosmoz-image-viewer.stories.js | 14 ++++---------- stories/data.js | 6 +++--- stories/haunted-pan-zoom.stories.js | 2 +- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/stories/cosmoz-image-viewer.stories.js b/stories/cosmoz-image-viewer.stories.js index 1cc1508..50fcd40 100644 --- a/stories/cosmoz-image-viewer.stories.js +++ b/stories/cosmoz-image-viewer.stories.js @@ -36,10 +36,7 @@ export const Basic = ({ ?loop=${loop} ?show-zoom=${showZoom} ?detached-show-zoom=${detachedShowZoom} - .images=${[ - '../stories/images/cosmos1.jpg', - '../stories/images/cosmos2.jpg', - ]} + .images=${['stories/images/cosmos1.jpg', 'stories/images/cosmos2.jpg']} > `; @@ -55,13 +52,10 @@ Basic.args = { export const Issue21 = () => { const images1 = [ - '../stories/images/stockholm.jpg', - '../stories/images/strasbourg.jpg', + 'stories/images/stockholm.jpg', + 'stories/images/strasbourg.jpg', ], - images2 = [ - '../stories/images/cosmos1.jpg', - '../stories/images/cosmos2.jpg', - ]; + images2 = ['stories/images/cosmos1.jpg', 'stories/images/cosmos2.jpg']; return html` '../stories/images/a_size.png', + () => 'stories/images/a_size.png', () => new Promise((resolve) => - setTimeout(() => resolve('../stories/images/strasbourg.jpg'), 500), + setTimeout(() => resolve('stories/images/strasbourg.jpg'), 500), ), ]; diff --git a/stories/haunted-pan-zoom.stories.js b/stories/haunted-pan-zoom.stories.js index 70d4dc3..a7190f9 100644 --- a/stories/haunted-pan-zoom.stories.js +++ b/stories/haunted-pan-zoom.stories.js @@ -7,7 +7,7 @@ export default { }; const Template = ({ disabled, height, zoomStiffness, panStiffness }) => html`