aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/header.stories.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-22 15:09:39 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-22 15:09:39 +0200
commit321dae4a47594af83269fa560b375965d7f35763 (patch)
tree28392e486bb8c99c231e767d1532935c5ebc1b94 /src/components/organisms/layout/header.stories.tsx
parent70bd37fe14d4e0c1538291fa97b0522ab6d20941 (diff)
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.
Diffstat (limited to 'src/components/organisms/layout/header.stories.tsx')
-rw-r--r--src/components/organisms/layout/header.stories.tsx3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/components/organisms/layout/header.stories.tsx b/src/components/organisms/layout/header.stories.tsx
index a5233ea..0507e89 100644
--- a/src/components/organisms/layout/header.stories.tsx
+++ b/src/components/organisms/layout/header.stories.tsx
@@ -112,7 +112,6 @@ export default {
required: true,
},
},
- unoptimized: { table: { disable: true } },
withLink: {
control: {
type: 'boolean',
@@ -151,6 +150,4 @@ Header.args = {
nav,
photo: 'http://placeimg.com/640/480/people',
title: 'Website title',
- // @ts-ignore - Needed because of the placeholder image.
- unoptimized: true,
};