From 321dae4a47594af83269fa560b375965d7f35763 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 22 May 2022 15:09:39 +0200 Subject: fix: render all images unoptimized in Storybook There is a bug with next/image and Storybook. I was manually adding `unoptimized` to images. Instead we can use a workaround by adding an extra config in Storybook `preview.js` file. --- src/components/templates/page/page-layout.test.tsx | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/components/templates/page/page-layout.test.tsx') diff --git a/src/components/templates/page/page-layout.test.tsx b/src/components/templates/page/page-layout.test.tsx index a414e14..a0c8923 100644 --- a/src/components/templates/page/page-layout.test.tsx +++ b/src/components/templates/page/page-layout.test.tsx @@ -98,8 +98,6 @@ describe('PageLayout', () => { 'Voluptas ducimus inventore. Libero ut et doloribus. Earum nostrum ab. Aliquam rem dolores omnis voluptate. Sunt aut ut et.', id: 1, publication: '2021-04-03 18:04:11', - // @ts-ignore - Needed because of the placeholder image. - unoptimized: true, }, ]; render( -- cgit v1.2.3