Skip to content

Commit

Permalink
Revert "Hide tooltip related to Storefront theme in Multi-Currency se…
Browse files Browse the repository at this point in the history
…ttings when Storefront is not the active theme"

This reverts commit 557b7d9.
  • Loading branch information
jessepearson committed Oct 2, 2023
1 parent 557b7d9 commit 7354671
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 47 deletions.
4 changes: 0 additions & 4 deletions changelog/2023-10-02-17-34-52-222632

This file was deleted.

12 changes: 6 additions & 6 deletions client/multi-currency-setup/tasks/store-settings-task/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ const StoreSettingsTask = () => {
) }
/>
<br />
<div className="wcpay-wizard-task__description-element is-muted-color">
{ __(
'A currency switcher is also available in your widgets.',
'woocommerce-payments'
) }
</div>
</>
) : null }
<div className="wcpay-wizard-task__description-element is-muted-color">
{ __(
'A currency switcher is also available in your widgets.',
'woocommerce-payments'
) }
</div>
</CardBody>
</Card>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,44 +139,35 @@ const StoreSettings = () => {
) }
</div>
{ storeSettings.site_theme === 'Storefront' ? (
<>
<CheckboxControl
checked={
isStorefrontSwitcherEnabledValue
}
onChange={
handleIsStorefrontSwitcherEnabledClick
}
data-testid={
'enable_storefront_switcher'
}
label={ __(
'Add a currency switcher to the Storefront theme on breadcrumb section.',
'woocommerce-payments'
) }
/>
<div className="multi-currency-settings__description">
{ createInterpolateElement(
sprintf(
/* translators: %s: url to the widgets page */
__(
'A currency switcher is also available in your widgets. ' +
'<linkToWidgets>Configure now</linkToWidgets>',
'woocommerce-payments'
),
'widgets.php'
),
{
// eslint-disable-next-line jsx-a11y/anchor-has-content
linkToWidgets: (
// eslint-disable-next-line jsx-a11y/anchor-has-content
<a href="widgets.php" />
),
}
) }
</div>
</>
<CheckboxControl
checked={ isStorefrontSwitcherEnabledValue }
onChange={
handleIsStorefrontSwitcherEnabledClick
}
data-testid={ 'enable_storefront_switcher' }
label={ __(
'Add a currency switcher to the Storefront theme on breadcrumb section.',
'woocommerce-payments'
) }
/>
) : null }
<div className="multi-currency-settings__description">
{ createInterpolateElement(
sprintf(
/* translators: %s: url to the widgets page */
__(
'A currency switcher is also available in your widgets. ' +
'<linkToWidgets>Configure now</linkToWidgets>',
'woocommerce-payments'
),
'widgets.php'
),
{
// eslint-disable-next-line jsx-a11y/anchor-has-content
linkToWidgets: <a href="widgets.php" />,
}
) }
</div>
</CardBody>
<PreviewModal
isPreviewModalOpen={ isPreviewModalOpen }
Expand Down

0 comments on commit 7354671

Please sign in to comment.