chore: cleanup

This commit is contained in:
Divlo
2021-12-28 16:06:58 +01:00
parent accd36d1fc
commit 91e246b759
28 changed files with 21766 additions and 11026 deletions

View File

@ -1,6 +1,10 @@
const path = require('path')
module.exports = {
core: {
builder: 'webpack5'
},
staticDirs: ['../public'],
stories: ['../components/**/*.stories.@(ts|tsx|js|jsx)'],
addons: [
'@storybook/addon-links',

View File

@ -1,3 +1,4 @@
import * as NextImage from 'next/image'
import { addDecorator } from '@storybook/react'
import I18nProvider from 'next-translate/I18nProvider'
@ -30,9 +31,9 @@ addDecorator((story) => (
</I18nProvider>
))
import * as nextImage from 'next/image'
const OriginalNextImage = NextImage.default
Object.defineProperty(nextImage, 'default', {
Object.defineProperty(NextImage, 'default', {
configurable: true,
value: (props) => <img {...props} />
value: (props) => <OriginalNextImage {...props} unoptimized />
})