Remove "show" prefix from dashboard store performance toggles.

Also nix an unnecessary translation on chart toggles.
This commit is contained in:
Jeff Stieler 2019-09-04 08:39:22 -07:00
parent b6c34109f0
commit c55bc5f22d
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ class DashboardCharts extends Component {
} ); } );
} } } }
> >
{ __( `${ chart.label }`, 'woocommerce-admin' ) } { chart.label }
</MenuItem> </MenuItem>
); );
} ) } } ) }

View File

@ -2,7 +2,7 @@
/** /**
* External dependencies * External dependencies
*/ */
import { __, sprintf } from '@wordpress/i18n'; import { __ } from '@wordpress/i18n';
import { Component, Fragment } from '@wordpress/element'; import { Component, Fragment } from '@wordpress/element';
import { compose } from '@wordpress/compose'; import { compose } from '@wordpress/compose';
import { withDispatch } from '@wordpress/data'; import { withDispatch } from '@wordpress/data';
@ -74,7 +74,7 @@ class StorePerformance extends Component {
} ); } );
} } } }
> >
{ sprintf( __( 'Show %s', 'woocommerce-admin' ), indicator.label ) } { indicator.label }
</MenuItem> </MenuItem>
); );
} ) } } ) }