Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
fix: change variables
Browse files Browse the repository at this point in the history
Signed-off-by: fan-mengwen <fan.mengwen@xsky.com>
  • Loading branch information
fan-mengwen committed Apr 27, 2023
1 parent d50c0c8 commit 777aa74
Show file tree
Hide file tree
Showing 3 changed files with 293 additions and 874 deletions.
17 changes: 8 additions & 9 deletions .storybook/config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { configure, addDecorator } from '@storybook/react';
import { withOptions } from '@storybook/addon-options';
import '../src/style/index.scss';
import '../node_modules/bootstrap/scss/bootstrap.scss';
import './style.scss';

addDecorator (
withOptions ({
addDecorator(
withOptions({
name: 'WIZARD UI',
url: 'https://github.com/xsky-fe/wizard-ui',
sidebarAnimations: true,
Expand All @@ -17,11 +16,11 @@ addDecorator (
);

// automatically import all files ending in *.stories.js
const srcReq = require.context ('../src', true, /.stories.tsx$/);
const storiesReq = require.context ('../stories', true, /.stories.tsx$/);
function loadStories () {
srcReq.keys().forEach (filename => srcReq (filename));
storiesReq.keys().forEach (filename => storiesReq (filename));
const srcReq = require.context('../src', true, /.stories.tsx$/);
const storiesReq = require.context('../stories', true, /.stories.tsx$/);
function loadStories() {
srcReq.keys().forEach(filename => srcReq(filename));
storiesReq.keys().forEach(filename => storiesReq(filename));
}

configure (loadStories, module);
configure(loadStories, module);
Loading

0 comments on commit 777aa74

Please sign in to comment.