-
Notifications
You must be signed in to change notification settings - Fork 65
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
feat(docs): use next instead of storybook #122
Conversation
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.
🚀
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.
lgtmm
@@ -21,38 +21,43 @@ export class List extends React.PureComponent<ListProps> { | |||
placement: 'bottom-start', | |||
}; | |||
|
|||
private listContainer = document.createElement('div'); | |||
private listContainer: HTMLDivElement | undefined; |
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.
Could you simplify it to this?
private listContainer: HTMLDivElement | undefined; | |
private listContainer?: HTMLDivElement; |
@@ -42,16 +42,19 @@ export class Modal extends React.PureComponent<ModalProps> { | |||
static Body = StyledModalBody; | |||
static Header = ModalHeader; | |||
|
|||
private modalContainer: HTMLDivElement | undefined; |
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.
private modalContainer: HTMLDivElement | undefined; | |
private modalContainer?: HTMLDivElement; |
@@ -22,14 +22,17 @@ export class Tooltip extends React.PureComponent<TooltipProps, State> { | |||
visible: false, | |||
}; | |||
|
|||
private tooltipContainer = document.createElement('div'); | |||
private tooltipContainer: HTMLDivElement | undefined; |
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.
private tooltipContainer: HTMLDivElement | undefined; | |
private tooltipContainer?: HTMLDivElement; |
Get rid of
Storybook
and start usingNext.js
for our docs.Why
Storybook was becoming painfully slow.
SSR
compatible.packages/docs
TODO in this PR:
TODO in following PRs: