Skip to content
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

Merged
merged 1 commit into from
Aug 2, 2019
Merged

feat(docs): use next instead of storybook #122

merged 1 commit into from
Aug 2, 2019

Conversation

deini
Copy link
Member

@deini deini commented Aug 2, 2019

Get rid of Storybook and start using Next.js for our docs.

Why

Storybook was becoming painfully slow.

  • Made some changes of how we use portals to make big-design SSR compatible.
  • Moved everything into packages/docs

TODO in this PR:

  • Fix tests

TODO in following PRs:

  • Make it look decent

@deini deini requested a review from a team August 2, 2019 18:23
Copy link
Contributor

@jorgemoya jorgemoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Copy link
Member

@rtalvarez rtalvarez left a 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;
Copy link
Contributor

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?

Suggested change
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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private tooltipContainer: HTMLDivElement | undefined;
private tooltipContainer?: HTMLDivElement;

@deini deini merged commit 986ebd6 into bigcommerce:master Aug 2, 2019
@deini deini deleted the docs branch August 2, 2019 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants