Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc533b1

Browse files
committed
Formatting
1 parent f923c08 commit fc533b1

File tree

3 files changed

+18
-30
lines changed

3 files changed

+18
-30
lines changed

.storybook/main.js

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
const path = require('path')
1+
const path = require("path")
22

33
module.exports = {
4-
"stories": [
5-
"../site/**/*.stories.mdx",
6-
"../site/**/*.stories.@(js|jsx|ts|tsx)"
7-
],
8-
"addons": [
9-
"@storybook/addon-links",
10-
"@storybook/addon-essentials",
11-
],
12-
babel: async (options) => ({
4+
stories: ["../site/**/*.stories.mdx", "../site/**/*.stories.@(js|jsx|ts|tsx)"],
5+
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
6+
babel: async (options) => ({
137
...options,
14-
"plugins": ["@babel/plugin-proposal-class-properties"]
8+
plugins: ["@babel/plugin-proposal-class-properties"],
159
// any extra options you want to set
1610
}),
1711
webpackFinal: async (config) => {
18-
config.resolve.modules = [
19-
path.resolve(__dirname, ".."),
20-
"node_modules",
21-
]
12+
config.resolve.modules = [path.resolve(__dirname, ".."), "node_modules"]
2213

23-
return config;
24-
}
25-
}
14+
return config
15+
},
16+
}

.storybook/preview.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
import ThemeProvider from "@material-ui/styles/ThemeProvider"
2-
import { withThemes } from '@react-theming/storybook-addon'
3-
import { light, dark } from '../site/theme'
4-
import { addDecorator } from 'node_modules/@storybook/react'
2+
import { withThemes } from "@react-theming/storybook-addon"
3+
import { light, dark } from "../site/theme"
4+
import { addDecorator } from "node_modules/@storybook/react"
55

6-
addDecorator(withThemes(
7-
ThemeProvider,
8-
[light, dark]
9-
))
6+
addDecorator(withThemes(ThemeProvider, [light, dark]))
107

118
export const parameters = {
12-
actions: {
9+
actions: {
1310
argTypesRegex: "^on[A-Z].*",
1411
argTypesRegex: "^handle[A-Z].*",
15-
},
12+
},
1613
controls: {
1714
expanded: true,
1815
matchers: {
1916
color: /(background|color)$/i,
2017
date: /Date$/,
2118
},
2219
},
23-
}
20+
}

site/components/Button/LoadingButton.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ Loading.args = {
2222
export const NotLoading = Template.bind({})
2323
NotLoading.args = {
2424
variant: "contained",
25-
loading: false
26-
}
25+
loading: false,
26+
}

0 commit comments

Comments
 (0)