Skip to content

Commit

Permalink
[core] Format rebased files
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Feb 21, 2019
1 parent a28af83 commit 786fcf5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
6 changes: 1 addition & 5 deletions packages/material-ui/src/Drawer/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,7 @@ class Drawer extends React.Component {

if (variant === 'permanent') {
return (
<div
className={clsx(classes.root, classes.docked, className)}
ref={innerRef}
{...other}
>
<div className={clsx(classes.root, classes.docked, className)} ref={innerRef} {...other}>
{drawer}
</div>
);
Expand Down
6 changes: 1 addition & 5 deletions packages/material-ui/src/StepContent/StepContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ const StepContent = React.forwardRef(function StepContent(props, ref) {
}

return (
<div
className={clsx(classes.root, { [classes.last]: last }, className)}
ref={ref}
{...other}
>
<div className={clsx(classes.root, { [classes.last]: last }, className)} ref={ref} {...other}>
<TransitionComponent
in={active}
className={classes.transition}
Expand Down
10 changes: 5 additions & 5 deletions packages/material-ui/src/utils/withForwardedRef.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { getDisplayName, hoistMuiStatics } from '@material-ui/utils';
* Enables ref forwarding on a given component that uses `innerRef` to forward refs
* This is useful for component implementations that predate `forwardRef` and
* used other props to forward refs.
*
*
* Instead of `<Component innerRef={ref} />` you can write
* `<withForwardRef(Component) ref={ref} />`.
*
* `<withForwardRef(Component) ref={ref} />`.
*
* This HOC does not handle prop collision. In
* `<withForwardRef(Component) ref={ref} innerRef={innerRef} />` `innerRef` will be dropped
*
*
* Only copies statics from material-ui over.
*
*
* @param {React.ComponentType} Component
* @returns {React.ForwardRefComponent}
*/
Expand Down

0 comments on commit 786fcf5

Please sign in to comment.