diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-22 15:09:39 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-22 15:09:39 +0200 |
| commit | 321dae4a47594af83269fa560b375965d7f35763 (patch) | |
| tree | 28392e486bb8c99c231e767d1532935c5ebc1b94 /src/components/organisms/layout/comment.stories.tsx | |
| parent | 70bd37fe14d4e0c1538291fa97b0522ab6d20941 (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/comment.stories.tsx')
| -rw-r--r-- | src/components/organisms/layout/comment.stories.tsx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/components/organisms/layout/comment.stories.tsx b/src/components/organisms/layout/comment.stories.tsx index c7649ab..fa4bba9 100644 --- a/src/components/organisms/layout/comment.stories.tsx +++ b/src/components/organisms/layout/comment.stories.tsx @@ -123,6 +123,4 @@ Comment.args = { 'Harum aut cumque iure fugit neque sequi cupiditate repudiandae laudantium. Ratione aut assumenda qui illum voluptas accusamus quis officiis exercitationem. Consectetur est harum eius perspiciatis officiis nihil. Aut corporis minima debitis adipisci possimus debitis et.', id: 2, publication: '2021-04-03 23:04:24', - // @ts-ignore - Needed because of the placeholder image. - unoptimized: true, }; |
