Stock Report: Fix bad text domains (https://github.com/woocommerce/woocommerce-admin/pull/4980)
* Fix bad text domains * fix currency bug
This commit is contained in:
parent
1d482e6357
commit
c3d1e1eb61
|
@ -5,7 +5,6 @@ module.exports = {
|
||||||
'@wordpress/i18n-translator-comments': 'warn',
|
'@wordpress/i18n-translator-comments': 'warn',
|
||||||
'@wordpress/valid-sprintf': 'warn',
|
'@wordpress/valid-sprintf': 'warn',
|
||||||
'react-hooks/rules-of-hooks': 'warn',
|
'react-hooks/rules-of-hooks': 'warn',
|
||||||
'@wordpress/i18n-text-domain': 'warn',
|
|
||||||
'jsdoc/check-param-names': 'warn',
|
'jsdoc/check-param-names': 'warn',
|
||||||
'jsdoc/require-param': 'warn',
|
'jsdoc/require-param': 'warn',
|
||||||
'jsdoc/require-property': 'warn',
|
'jsdoc/require-property': 'warn',
|
||||||
|
|
|
@ -155,19 +155,19 @@ class StockReportTable extends Component {
|
||||||
value: formatValue( currency, 'number', products ),
|
value: formatValue( currency, 'number', products ),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: __( 'out of stock', outofstock, 'woocommerce-admin' ),
|
label: __( 'out of stock', 'woocommerce-admin' ),
|
||||||
value: formatValue( currency, 'number', outofstock ),
|
value: formatValue( currency, 'number', outofstock ),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: __( 'low stock', lowstock, 'woocommerce-admin' ),
|
label: __( 'low stock', 'woocommerce-admin' ),
|
||||||
value: formatValue( 'currency, number', lowstock ),
|
value: formatValue( currency, 'number', lowstock ),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: __( 'on backorder', onbackorder, 'woocommerce-admin' ),
|
label: __( 'on backorder', 'woocommerce-admin' ),
|
||||||
value: formatValue( currency, 'number', onbackorder ),
|
value: formatValue( currency, 'number', onbackorder ),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: __( 'in stock', instock, 'woocommerce-admin' ),
|
label: __( 'in stock', 'woocommerce-admin' ),
|
||||||
value: formatValue( currency, 'number', instock ),
|
value: formatValue( currency, 'number', instock ),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
import { compose } from '@wordpress/compose';
|
import { compose } from '@wordpress/compose';
|
||||||
import { withSelect } from '@wordpress/data';
|
import { withSelect } from '@wordpress/data';
|
||||||
import { identity } from 'lodash';
|
import { identity } from 'lodash';
|
||||||
|
|
||||||
import { getSetting } from '@woocommerce/wc-admin-settings';
|
import { getSetting } from '@woocommerce/wc-admin-settings';
|
||||||
import {
|
import {
|
||||||
ONBOARDING_STORE_NAME,
|
ONBOARDING_STORE_NAME,
|
||||||
|
|
|
@ -12,7 +12,6 @@ import {
|
||||||
__experimentalText as Text,
|
__experimentalText as Text,
|
||||||
} from '@wordpress/components';
|
} from '@wordpress/components';
|
||||||
import { get, xor } from 'lodash';
|
import { get, xor } from 'lodash';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
EllipsisMenu,
|
EllipsisMenu,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
|
|
Loading…
Reference in New Issue