mirror of
https://github.com/strapi/strapi.git
synced 2025-11-06 13:01:40 +00:00
Chore: Fix eslint errors
This commit is contained in:
parent
9b2d5b0e6f
commit
ab1d9e66b3
@ -194,7 +194,4 @@ Component.propTypes = {
|
|||||||
|
|
||||||
const Memoized = memo(Component, isEqual);
|
const Memoized = memo(Component, isEqual);
|
||||||
|
|
||||||
export default connect(
|
export default connect(Memoized, select);
|
||||||
Memoized,
|
|
||||||
select
|
|
||||||
);
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
function connect(WrappedComponent, select) {
|
function connect(WrappedComponent, select) {
|
||||||
return function(props) {
|
return (props) => {
|
||||||
const selectors = select(props);
|
const selectors = select(props);
|
||||||
|
|
||||||
return <WrappedComponent {...props} {...selectors} />;
|
return <WrappedComponent {...props} {...selectors} />;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user