-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Storybook <Button /> #213
Changes from 1 commit
d90edab
e0244ce
44abff7
5093b89
73cb828
45e7d15
5eb9f5f
dc5aff1
b0617ad
7cd7799
022fff3
8507659
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
module.exports = { | ||
stories: ["../src/components/**/*.stories.tsx"], | ||
addons: [ | ||
"@storybook/addon-actions", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-knobs", | ||
"@storybook/addon-notes", | ||
"@storybook/addon-storysource", | ||
], | ||
reactOptions: { | ||
fastRefresh: true, | ||
strictMode: true, | ||
// TODO: fix warn "Rendered more hooks than during the previous render." | ||
// knobを完全に排除できたタイミングで再度調査 | ||
// strictMode: true, | ||
}, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import * as React from "react"; | ||
import { ThemeProvider, createTheme } from "../src/themes"; | ||
import "@storybook/addon-console"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
|
||
const theme = createTheme(); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,10 +40,9 @@ | |
"styled-components": ">= 5.X" | ||
}, | ||
"devDependencies": { | ||
"@storybook/addon-actions": "^6.1.6", | ||
"@storybook/addon-knobs": "^6.1.6", | ||
"@storybook/addon-notes": "^5.3.21", | ||
"@storybook/addon-storysource": "^6.1.6", | ||
"@storybook/addon-console": "^1.2.2", | ||
"@storybook/addon-essentials": "^6.1.9", | ||
"@storybook/addon-knobs": "^6.1.9", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. こいつ残してるのは、前のやつとの互換とるためかな? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. そうですね。前のやつと互換を取るためです!
合ってます!がライブラリとしては別モノなので、一気に乗り換えるためには修正は必要でして。。。 いずれ全て変わるので、一気にやらなくても良いかなという判断です! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
"@storybook/react": "^6.1.6", | ||
"@svgr/rollup": "^2.4.1", | ||
"@testing-library/jest-dom": "^5.11.0", | ||
|
@@ -70,6 +69,8 @@ | |
"gh-pages": "^1.2.0", | ||
"jest": "^26.1.0", | ||
"prettier": "^2.1.2", | ||
"react": ">= 16.6.1", | ||
"react-dom": ">= 16.6.1", | ||
"rollup": "^2.33.3", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-imagemin": "^0.4.1", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
memo