Skip to content

Commit 63f1c4d

Browse files
committed
respect coding style
1 parent 44a993e commit 63f1c4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/withElementPortal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ function getDisplayName(Component) {
55
return Component.displayName || Component.name || 'Component';
66
}
77

8-
const withElementPortal = (portalProps) => (component) => {
8+
const withElementPortal = (portalProps) => (Component) => {
99
const WithElementPortal = (props) => (
1010
<ElementPortal
1111
{...portalProps}
1212
component={(mappedProps) => (
13-
React.createElement(component, {...props, ...mappedProps})
13+
React.createElement(Component, {...props, ...mappedProps})
1414
)}
1515
/>
1616
);
1717

18-
WithElementPortal.displayName = `WithElementPortal(${getDisplayName(component)})`;
18+
WithElementPortal.displayName = `WithElementPortal(${getDisplayName(Component)})`;
1919
return WithElementPortal;
2020
};
2121

0 commit comments

Comments
 (0)