Skip to content

Commit

Permalink
private component
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jan 23, 2021
1 parent 16293a2 commit 7366a0c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/material-ui/src/Hidden/HiddenCss.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ import PropTypes from 'prop-types';
import { unstable_composeClasses as composeClasses } from '@material-ui/unstyled';
import capitalize from '../utils/capitalize';
import experimentalStyled from '../styles/experimentalStyled';
import useThemeProps from '../styles/useThemeProps';
import useTheme from '../styles/useTheme';
import { getHiddenCssUtilityClass } from './hiddenCssClasses';

const overridesResolver = (props, styles) => styles.root || {};

const useUtilityClasses = (styleProps) => {
const { classes, breakpoints } = styleProps;

Expand All @@ -33,7 +30,6 @@ const HiddenCssRoot = experimentalStyled(
{
name: 'PrivateHiddenCss',
slot: 'Root',
overridesResolver,
},
)(({ theme, styleProps }) => {
const hidden = {
Expand Down Expand Up @@ -68,8 +64,7 @@ const HiddenCssRoot = experimentalStyled(
/**
* @ignore - internal component.
*/
const HiddenCss = React.forwardRef(function HiddenCss(inProps) {
const props = useThemeProps({ props: inProps, name: 'PrivateHiddenCss' });
const HiddenCss = React.forwardRef(function HiddenCss(props) {
const { children, className, only, ...other } = props;
const theme = useTheme();

Expand Down

0 comments on commit 7366a0c

Please sign in to comment.