Skip to content

Commit d6d883a

Browse files
committed
fix: jslint errors
1 parent 574fc67 commit d6d883a

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

js/Review/index.js

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
/**
22
* WordPress dependencies.
33
*/
4-
import { __ } from '@wordpress/i18n';
4+
import {
5+
__,
6+
sprintf
7+
} from '@wordpress/i18n';
58

69
import apiFetch from '@wordpress/api-fetch';
710

@@ -48,8 +51,32 @@ const App = () => {
4851
shouldCloseOnClickOutside={ false }
4952
onRequestClose={ closeModal }
5053
>
51-
<p>{ __( 'You\'ve successfully imported', 'feedzy-rss-feeds' ) }<strong>{ __( ' more than 100 posts', 'feedzy-rss-feeds' ) }</strong>{ __( ' using Feedzy!', 'feedzy-rss-feeds' ) }</p>
52-
<p>{ __( 'If you\'re enjoying Feedzy, we\'d be thrilled if you could leave us a', 'feedzy-rss-feeds' ) } <strong>{ __( '5-star review', 'feedzy-rss-feeds' ) }</strong> (<span style={{ color: 'gold' }}>★★★★★</span>) { __( 'on WordPress.org. Your support helps us grow and deliver even better features.', 'feedzy-rss-feeds' ) }</p>
54+
<p
55+
dangerouslySetInnerHTML={{
56+
__html: sprintf(
57+
__(
58+
"You've successfully imported %1$s more than 100 posts %2$s using Feedzy!",
59+
'feedzy-rss-feeds'
60+
),
61+
'<strong>', // %1$s
62+
'</strong>' // %2$s
63+
),
64+
}}
65+
/>
66+
67+
<p
68+
dangerouslySetInnerHTML={{
69+
__html: sprintf(
70+
__(
71+
"If you're enjoying Feedzy, we'd be thrilled if you could leave us a %1$s5-star review%2$s (%3$s) on WordPress.org. Your support helps us grow and deliver even better features.",
72+
'feedzy-rss-feeds'
73+
),
74+
'<strong>', // %1$s
75+
'</strong>', // %2$s
76+
'<span style="color:gold;">★★★★★</span>' // %3$s
77+
),
78+
}}
79+
/>
5380

5481
<div className="buttons-wrap" style={{ display: 'flex', gap: '10px', marginTop: '20px' }}>
5582
<Button

0 commit comments

Comments
 (0)