Skip to content

Commit

Permalink
Fixing JS lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
message-dimke committed Aug 7, 2024
1 parent fe6da72 commit 184c0e2
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions assets/source/catalog-sync/sections/SyncIssues.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const SyncIssues = () => {
const total = feedIssues?.total_rows ?? 0

Check failure on line 32 in assets/source/catalog-sync/sections/SyncIssues.js

View workflow job for this annotation

GitHub Actions / Lint JavaScript

[prettier/prettier] Insert `;`

const messageStyles = {
marginTop: "40px",
textAlign: "right"
}
marginTop: '40px',
textAlign: 'right'

Check failure on line 36 in assets/source/catalog-sync/sections/SyncIssues.js

View workflow job for this annotation

GitHub Actions / Lint JavaScript

[prettier/prettier] Insert `,`
};

if ( ! feedIssues?.lines?.length ) {
return null;
Expand All @@ -54,28 +54,27 @@ const SyncIssues = () => {

return (
<>
{
itemsLimit === total && (
<Text style={ messageStyles }>
{ createInterpolateElement(
sprintf(
// translators: %1$s: Total number of issues in the table.
__(
'Only the first %1$s Errors and Warnings are displayed below. To see more, please, visit <feedDiagnostics>Pinterest Feed Diagnostics</feedDiagnostics> page.',
'pinterest-for-woocommerce'
),
total
),
{
feedDiagnostics: (
<ExternalLink
href={ `https://pinterest.com/business/catalogs/diagnosticsv2/?advertiserId=${trackingAdvertiser}` }
/>
)
}
{ itemsLimit === total && (
<Text style={ messageStyles }>
{ createInterpolateElement(
sprintf(
// translators: %1$s: Total number of issues in the table.
__(
'Only the first %1$s Errors and Warnings are displayed below. To see more, please, visit <feedDiagnostics>Pinterest Feed Diagnostics</feedDiagnostics> page.',
'pinterest-for-woocommerce'
),
total
),
{
feedDiagnostics: (
<ExternalLink
href={ `https://pinterest.com/business/catalogs/diagnosticsv2/?advertiserId=${ trackingAdvertiser }` }
/>
)

Check failure on line 73 in assets/source/catalog-sync/sections/SyncIssues.js

View workflow job for this annotation

GitHub Actions / Lint JavaScript

[prettier/prettier] Insert `,`
}
</Text>
)
}

Check failure on line 76 in assets/source/catalog-sync/sections/SyncIssues.js

View workflow job for this annotation

GitHub Actions / Lint JavaScript

[prettier/prettier] Replace `↹)⏎↹↹↹↹↹` with `)·`
</Text>
)
}

Check failure on line 79 in assets/source/catalog-sync/sections/SyncIssues.js

View workflow job for this annotation

GitHub Actions / Lint JavaScript

[prettier/prettier] Replace `↹)⏎↹↹↹` with `)·`
<SyncIssuesTable
Expand Down

0 comments on commit 184c0e2

Please sign in to comment.