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

[Paper] Add a component property #6830

Merged
merged 1 commit into from
May 11, 2017
Merged

[Paper] Add a component property #6830

merged 1 commit into from
May 11, 2017

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented May 9, 2017

I'm using that property to render a header instead of a div.
Thanks to it, I can save one dom element.

  • PR has tests / docs demo, and is linted.
  • Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
  • Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

@oliviertassinari oliviertassinari added component: Paper This is the name of the generic UI component, not the React module! next labels May 9, 2017
@@ -39,6 +39,7 @@ export const styleSheet = createStyleSheet('MuiPaper', (theme) => {
export default function Paper(props, context) {
const {
className: classNameProp,
component: Component,
Copy link
Member

Choose a reason for hiding this comment

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

We use component: ComponentProp, everywhere else.

Copy link
Member Author

@oliviertassinari oliviertassinari May 10, 2017

Choose a reason for hiding this comment

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

I thought it was when we can't use Component. What do you want me to do?

Copy link
Member Author

Choose a reason for hiding this comment

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

Used ComponentProp instead 👍

I'm using that property to render a header instead of a div.
Thanks to it, I can save one dom element.
@oliviertassinari oliviertassinari merged commit 1f4095f into mui:next May 11, 2017
@oliviertassinari oliviertassinari deleted the paper-component branch May 11, 2017 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Paper This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants