Fix typo and lint
This commit is contained in:
parent
40428ec704
commit
b05a5abc10
|
@ -15,8 +15,23 @@ import { Subscription } from './types';
|
||||||
import './my-subscriptions.scss';
|
import './my-subscriptions.scss';
|
||||||
|
|
||||||
export default function MySubscriptions(): JSX.Element {
|
export default function MySubscriptions(): JSX.Element {
|
||||||
const updateConnectionUrl = getNewPath( { page: 'wc-addons', section: 'helper', filter: 'all', 'wc-helper-refresh': 1, 'wc-helper-nonce': getAdminSetting( 'wc_helper_nonces' ).refresh }, '' );
|
const updateConnectionUrl = getNewPath(
|
||||||
const updateConnectionHTML = sprintf( __( "If you don't see your subscription, try <a href=\"%s\">updating</a> your connection.", 'woocommerce' ), updateConnectionUrl );
|
{
|
||||||
|
page: 'wc-addons',
|
||||||
|
section: 'helper',
|
||||||
|
filter: 'all',
|
||||||
|
'wc-helper-refresh': 1,
|
||||||
|
'wc-helper-nonce': getAdminSetting( 'wc_helper_nonces' ).refresh,
|
||||||
|
},
|
||||||
|
''
|
||||||
|
);
|
||||||
|
const updateConnectionHTML = sprintf(
|
||||||
|
__(
|
||||||
|
'If you don\'t see your subscription, try <a href="%s">updating</a> your connection.',
|
||||||
|
'woocommerce'
|
||||||
|
),
|
||||||
|
updateConnectionUrl
|
||||||
|
);
|
||||||
|
|
||||||
const tableHeadersInstalled = [
|
const tableHeadersInstalled = [
|
||||||
{
|
{
|
||||||
|
@ -87,20 +102,30 @@ export default function MySubscriptions(): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<div className="woocommerce-marketplace__my-subscriptions">
|
<div className="woocommerce-marketplace__my-subscriptions">
|
||||||
<section>
|
<section>
|
||||||
<h2>
|
<h2>{ __( 'Installed on this store', 'woocommerce' ) }</h2>
|
||||||
{ __( 'Installed on this store', 'woocommerce' ) }
|
|
||||||
</h2>
|
|
||||||
<p>
|
<p>
|
||||||
<span dangerouslySetInnerHTML={{ __html: updateConnectionHTML }} />
|
<span
|
||||||
|
dangerouslySetInnerHTML={ {
|
||||||
|
__html: updateConnectionHTML,
|
||||||
|
} }
|
||||||
|
/>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
text={
|
text={
|
||||||
<>
|
<>
|
||||||
<h3>Still don't see your subscriptions?</h3>
|
<h3>Still don't see your subscriptions?</h3>
|
||||||
<p>To see all your subscriptions go to your account on WooCommerce.com.</p>
|
<p>
|
||||||
|
To see all your subscriptions go to your
|
||||||
|
account on WooCommerce.com.
|
||||||
|
</p>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Button icon={help} iconSize={20} isSmall={true} label={ __( 'Help', 'woocommerce' )} />
|
<Button
|
||||||
|
icon={ help }
|
||||||
|
iconSize={ 20 }
|
||||||
|
isSmall={ true }
|
||||||
|
label={ __( 'Help', 'woocommerce' ) }
|
||||||
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</p>
|
</p>
|
||||||
<Table
|
<Table
|
||||||
|
@ -120,14 +145,15 @@ export default function MySubscriptions(): JSX.Element {
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>
|
<h2>{ __( 'Available', 'woocommerce' ) }</h2>
|
||||||
{ __( 'Available', 'woocommerce' ) }
|
|
||||||
</h2>
|
|
||||||
<p>
|
<p>
|
||||||
{ __( 'Your unused and free WooCommerce.com subscriptions.', 'woocommerce' ) }
|
{ __(
|
||||||
|
'Your unused and free WooCommerce.com subscriptions.',
|
||||||
|
'woocommerce'
|
||||||
|
) }
|
||||||
</p>
|
</p>
|
||||||
<Table
|
<Table
|
||||||
headers={ tableHeadersInstalled }
|
headers={ tableHeadersAvailable }
|
||||||
rows={ subscriptionsAvailable.map( ( item ) => {
|
rows={ subscriptionsAvailable.map( ( item ) => {
|
||||||
return [
|
return [
|
||||||
{ display: item.name },
|
{ display: item.name },
|
||||||
|
|
Loading…
Reference in New Issue