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

[typescript] Extract WithTheme for external use #9363

Merged
merged 6 commits into from
Dec 1, 2017

Conversation

rosskevin
Copy link
Member

@rosskevin rosskevin commented Dec 1, 2017

  • extract WithTheme for external use
  • add ThemeOptions example in typescript guide

width?: React.CSSProperties['width']
breakpoint?: Breakpoint
}
}
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand what's going on here... you're duplicating the above Theme declaration but with optional properties?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, copy paste error. Good thing we have reviews!

@rosskevin
Copy link
Member Author

rosskevin commented Dec 1, 2017

fixed

merge(
{
appDrawer: {
width: '225px',
Copy link
Member

Choose a reason for hiding this comment

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

could just be width: 255 🤷‍♂️

@pelotom pelotom merged commit 40d4142 into mui:v1-beta Dec 1, 2017
@rosskevin rosskevin deleted the ts-WithTheme branch December 4, 2017 16:41
@oliviertassinari oliviertassinari changed the title extract WithTheme for external use [typescript] Extract WithTheme for external use Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants