Fix JS linting errors
adjust whitespaces and parentheses.
This commit is contained in:
parent
9adc8a733f
commit
b9842b6f99
|
@ -307,7 +307,7 @@ const formatProps = memoize(
|
||||||
[
|
[
|
||||||
isError,
|
isError,
|
||||||
isRequesting,
|
isRequesting,
|
||||||
( new URLSearchParams( tableQuery ) ).toString(),
|
new URLSearchParams( tableQuery ).toString(),
|
||||||
get( revenueData, [ 'totalResults' ], 0 ),
|
get( revenueData, [ 'totalResults' ], 0 ),
|
||||||
get( revenueData, [ 'data', 'intervals' ], EMPTY_ARRAY ).length,
|
get( revenueData, [ 'data', 'intervals' ], EMPTY_ARRAY ).length,
|
||||||
].join( ':' )
|
].join( ':' )
|
||||||
|
|
|
@ -19,7 +19,7 @@ const DefaultDate = ( { value, onChange } ) => {
|
||||||
onChange( {
|
onChange( {
|
||||||
target: {
|
target: {
|
||||||
name: 'woocommerce_default_date_range',
|
name: 'woocommerce_default_date_range',
|
||||||
value: ( new URLSearchParams( query ) ).toString(),
|
value: new URLSearchParams( query ).toString(),
|
||||||
},
|
},
|
||||||
} );
|
} );
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,9 +14,7 @@ import './style.scss';
|
||||||
|
|
||||||
type QueryParams = EmbeddedBodyProps;
|
type QueryParams = EmbeddedBodyProps;
|
||||||
|
|
||||||
function isWPPage(
|
function isWPPage( params: URLSearchParams ): boolean {
|
||||||
params: URLSearchParams
|
|
||||||
): Boolean {
|
|
||||||
return params.get( 'page' ) !== null;
|
return params.get( 'page' ) !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue