file persistence, load users from json, js packages updated
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
"stories": ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
||||
"addons": ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/preset-create-react-app"],
|
||||
core: {
|
||||
builder: "webpack5"
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ThemeProvider } from "styled-components";
|
||||
import theme from "../src/theme";
|
||||
|
||||
|
||||
export const decorators = [
|
||||
(Story) => (
|
||||
<ThemeProvider theme={theme}>
|
||||
<Story />
|
||||
</ThemeProvider>
|
||||
),
|
||||
];
|
||||
|
||||
|
||||
|
||||
export const parameters = {
|
||||
actions: { argTypesRegex: "^on[A-Z].*" },
|
||||
controls: {
|
||||
matchers: {
|
||||
color: /(background|color)$/i,
|
||||
date: /Date$/,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user