mirror of
https://github.com/dzeiocom/components.git
synced 2025-06-14 03:29:21 +00:00
@ -3,7 +3,7 @@ const webpack = require('webpack')
|
||||
|
||||
module.exports = {
|
||||
"stories": [
|
||||
"../src/dzeio/**/*.stories.tsx",
|
||||
"../src/**/*.stories.tsx",
|
||||
],
|
||||
core: {
|
||||
builder: "webpack5"
|
||||
|
@ -1,3 +1,4 @@
|
||||
import React from 'react'
|
||||
// https://stackoverflow.com/a/64765638/7335674
|
||||
|
||||
import * as nextImage from 'next/image'
|
||||
|
@ -1,8 +1,9 @@
|
||||
import Router from 'next/router';
|
||||
import Router from 'next/router'
|
||||
|
||||
Router.router = {
|
||||
push: async () => {},
|
||||
replace: async () => {},
|
||||
prefetch: () => {},
|
||||
route: '/mock-route',
|
||||
pathname: 'mock-path',};
|
||||
pathname: 'mock-path',
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import '../src/dzeio/general.styl'
|
||||
import '../src/general.styl'
|
||||
import './mockNextRouter'
|
||||
import './mockNextImage'
|
||||
|
||||
export const parameters = {
|
||||
layout: 'centered'
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user