File tree 1 file changed +1
-7
lines changed
packages/material-ui/src/Grid
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ export const styles = theme => ({
199
199
} , { } ) ,
200
200
} ) ;
201
201
202
- const Grid = React . forwardRef ( ( props , ref ) => {
202
+ const Grid = React . forwardRef ( function Grid ( props , ref ) {
203
203
const {
204
204
alignContent = 'stretch' ,
205
205
alignItems = 'stretch' ,
@@ -245,12 +245,6 @@ const Grid = React.forwardRef((props, ref) => {
245
245
return < Component className = { className } ref = { ref } { ...other } /> ;
246
246
} ) ;
247
247
248
- if ( process . env . NODE_ENV !== 'production' ) {
249
- // can't use named function expression since the function body references `Grid`
250
- // which would point to the render function instead of the actual component
251
- Grid . displayName = 'ForwardRef(Grid)' ;
252
- }
253
-
254
248
Grid . propTypes = {
255
249
/**
256
250
* Defines the `align-content` style property.
You can’t perform that action at this time.
0 commit comments