From 6156c3fd24f729209be9f726284ffc98be5ffadf Mon Sep 17 00:00:00 2001 From: Rebecca Scott Date: Thu, 2 Jul 2020 10:30:25 +1000 Subject: [PATCH] Add missing translation wrapper, also convert some spaces to tabs --- client/profile-wizard/steps/product-types.js | 2 +- packages/components/src/pill/docs/example.js | 2 +- packages/components/src/pill/pill.js | 6 +++--- packages/components/src/pill/stories/index.js | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/client/profile-wizard/steps/product-types.js b/client/profile-wizard/steps/product-types.js index 12f9f7dd10f..162b200ee6c 100644 --- a/client/profile-wizard/steps/product-types.js +++ b/client/profile-wizard/steps/product-types.js @@ -29,7 +29,7 @@ function getLabel( description, yearlyPrice ) { const monthlyPrice = ( yearlyPrice / 12.0 ).toFixed( 2 ); const priceDescription = sprintf( - '$%f per month, billed annually', + __( '$%f per month, billed annually', 'woocommerce-admin' ), monthlyPrice ); diff --git a/packages/components/src/pill/docs/example.js b/packages/components/src/pill/docs/example.js index 8a042f05d3a..78d10dfa046 100644 --- a/packages/components/src/pill/docs/example.js +++ b/packages/components/src/pill/docs/example.js @@ -5,6 +5,6 @@ import { Pill } from '@woocommerce/components'; export default () => { return ( - Content + Content ); }; diff --git a/packages/components/src/pill/pill.js b/packages/components/src/pill/pill.js index 15fdcf4e7cf..e546d272532 100644 --- a/packages/components/src/pill/pill.js +++ b/packages/components/src/pill/pill.js @@ -1,7 +1,7 @@ export function Pill( { children } ) { return ( - - { children } - + + { children } + ); } diff --git a/packages/components/src/pill/stories/index.js b/packages/components/src/pill/stories/index.js index cbdf02406b8..29e5691ba59 100644 --- a/packages/components/src/pill/stories/index.js +++ b/packages/components/src/pill/stories/index.js @@ -4,12 +4,12 @@ import Pill from '../'; export default { - title: 'WooCommerce Admin/components/Pill', - component: Pill, + title: 'WooCommerce Admin/components/Pill', + component: Pill, } export function Default() { - return ( - Content - ); + return ( + Content + ); }