Fix JS linting errors

adjust whitespaces and parentheses.
This commit is contained in:
Tomek Wytrębowicz 2022-10-18 00:17:22 +02:00
parent 9adc8a733f
commit b9842b6f99
3 changed files with 3 additions and 5 deletions

View File

@ -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( ':' )

View File

@ -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(),
}, },
} ); } );
}; };

View File

@ -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;
} }