Skip to content

Commit

Permalink
remove blank line
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 12, 2021
1 parent dd15b65 commit 05b37df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 8 additions & 5 deletions docs/pages/performance/table-emotion.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
// import { experimentalStyled as styled } from '@material-ui/core/styles';
import NoSsr from '@material-ui/core/NoSsr';

const createComponent = (defaultComponent) => {
const Root = styled('div')`
background: pink;
`;

const MyComponent = React.forwardRef(function MyComponent(props, ref) {
const { component: Component = defaultComponent, ...other } = props;
const { component = defaultComponent, ...other } = props;

return <Component ref={ref} {...other} />;
return <Root as={component} ref={ref} {...other} />;
});

MyComponent.propTypes = {
component: PropTypes.elementType,
};

return styled(MyComponent)`
background: pink;
`;
return MyComponent;
};

const Table = createComponent('table');
Expand Down
1 change: 0 additions & 1 deletion packages/material-ui/src/TableCell/TableCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const TableCellRoot = experimentalStyled(
fontWeight: theme.typography.fontWeightMedium,
}),
/* Styles applied to the root element if `variant="body"` or `context.table.body`. */

...(styleProps.variant === 'body' && {
color: theme.palette.text.primary,
}),
Expand Down

0 comments on commit 05b37df

Please sign in to comment.