@@ -24,7 +24,6 @@ const App = () => {
24
24
const [ isOpen , setOpen ] = useState ( true ) ;
25
25
26
26
const closeModal = async ( ) => {
27
- console . log ( 'closeModal' ) ;
28
27
try {
29
28
await apiFetch ( {
30
29
path : '/wp/v2/settings' ,
@@ -46,21 +45,22 @@ const App = () => {
46
45
47
46
return (
48
47
< Modal
49
- title = { __ ( 'Congrats, You\'ve Reached an Impressive Milestone! 🎉 ' , 'feedzy-rss-feeds' ) }
48
+ title = { __ ( 'Congrats, You\'ve Reached an Impressive Milestone!' , 'feedzy-rss-feeds' ) + ' 🎉' }
50
49
size = "medium"
51
50
shouldCloseOnClickOutside = { false }
52
51
onRequestClose = { closeModal }
53
52
>
54
53
< p
55
54
dangerouslySetInnerHTML = { {
56
55
__html : sprintf (
57
- // translators: %1$s is an opening strong tag, %2$s is a closing strong tag.
56
+ // translators: %1$s is an opening strong tag, %2$s is a closing strong tag, %3$s is the number of posts imported .
58
57
__ (
59
- "You've successfully imported %1$s more than 100 posts %2$s using Feedzy!" ,
58
+ "You've successfully imported %1$s more than %3$s posts %2$s using Feedzy!" ,
60
59
'feedzy-rss-feeds'
61
60
) ,
62
61
'<strong>' , // %1$s
63
- '</strong>' // %2$s
62
+ '</strong>' , // %2$s
63
+ 100 // %3$s
64
64
) ,
65
65
} }
66
66
/>
@@ -99,6 +99,6 @@ domReady( () => {
99
99
const modalContainer = document . createElement ( 'div' ) ;
100
100
modalContainer . id = 'fz-review-modal' ;
101
101
document . body . appendChild ( modalContainer ) ;
102
- const root = createRoot ( document . getElementById ( 'fz-review-modal' ) ) ;
103
- root . render ( < App /> ) ;
102
+ const root = createRoot ( document . getElementById ( 'fz-review-modal' ) ) ;
103
+ root . render ( < App /> ) ;
104
104
} ) ;
0 commit comments