File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Hidden as MuiHidden , HiddenProps as MuiHiddenProps } from '@mui/material' ;
2+ import React from 'react' ;
3+
4+ export const Hidden = React . forwardRef < HTMLDivElement , MuiHiddenProps > ( ( props , ref ) => {
5+ return React . cloneElement ( < MuiHidden { ...props } /> , { ref } ) ;
6+ } ) ;
7+
8+ export default Hidden ;
Original file line number Diff line number Diff line change 1+ export { Hidden } from './Hidden' ;
Original file line number Diff line number Diff line change 1- import { IconButton as MuiIconButton , type IconButtonProps } from '@mui/material' ;
1+ import {
2+ IconButton as MuiIconButton ,
3+ type IconButtonProps as MuiIconButtonProps
4+ } from '@mui/material' ;
5+ import React from 'react' ;
26
3- export function IconButton ( props : IconButtonProps ) : JSX . Element {
4- return < MuiIconButton { ...props } /> ;
5- }
7+ export type IconButtonProps = MuiIconButtonProps ;
8+
9+ export const IconButton = React . forwardRef < HTMLButtonElement , IconButtonProps > ( ( props , ref ) => (
10+ < MuiIconButton ref = { ref } { ...props } />
11+ ) ) ;
12+
13+ IconButton . displayName = 'IconButton' ;
14+
15+ export default IconButton ;
You can’t perform that action at this time.
0 commit comments