File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ function getDisplayName(Component) {
5
5
return Component . displayName || Component . name || 'Component' ;
6
6
}
7
7
8
- const withElementPortal = ( portalProps ) => ( component ) => {
8
+ const withElementPortal = ( portalProps ) => ( Component ) => {
9
9
const WithElementPortal = ( props ) => (
10
10
< ElementPortal
11
11
{ ...portalProps }
12
12
component = { ( mappedProps ) => (
13
- React . createElement ( component , { ...props , ...mappedProps } )
13
+ React . createElement ( Component , { ...props , ...mappedProps } )
14
14
) }
15
15
/>
16
16
) ;
17
17
18
- WithElementPortal . displayName = `WithElementPortal(${ getDisplayName ( component ) } )` ;
18
+ WithElementPortal . displayName = `WithElementPortal(${ getDisplayName ( Component ) } )` ;
19
19
return WithElementPortal ;
20
20
} ;
21
21
You can’t perform that action at this time.
0 commit comments