-
Notifications
You must be signed in to change notification settings - Fork 62
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/modal #1048
Refactor/modal #1048
Conversation
.storybook/preview.js
Outdated
@@ -5,7 +5,7 @@ import '../packages/all/dist/style/af-toolkit-core.css'; | |||
import '../packages/core/dist/assets/fonts/icons/af-icons.css'; | |||
import './storybook.css'; | |||
|
|||
export const decorators = [addReadme]; | |||
// export const decorators = [addReadme]; |
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.
Why comment an export and not delete it if it's no longer used ?
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.
fixed
import { useRef } from 'react'; | ||
|
||
export const YourComponent = () => { | ||
const ref = useRef < HTMLDialogElement > null; |
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.
const ref = useRef < HTMLDialogElement > null; | |
const ref = useRef<HTMLDialogElement>(null); |
|
||
### Use | ||
export const YourComponent = () => { | ||
const ref = useRef < HTMLDialogElement > null; |
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.
const ref = useRef < HTMLDialogElement > null; | |
const ref = useRef<HTMLDialogElement>(null); |
424b469
to
c2404f2
Compare
Related issue
Bug
Person(s) for reviewing proposed changes
@arnaudforaison @samuel-gomez @JLou @buddyvegas
Important
This pull request introduces breaking changes :