File tree Expand file tree Collapse file tree 9 files changed +16
-13
lines changed
js-packages/ai-client/src
components/quota-exceeded-message
plugins/jetpack/extensions/plugins/ai-assistant-plugin/components Expand file tree Collapse file tree 9 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const useFairUsageNoticeMessage = () => {
47
47
48
48
const getFairUsageNoticeMessage = resetDateString => {
49
49
const fairUsageMessage = __ (
50
- "You've reached this month's request limit, per our <link>fair usage policy</link>." ,
50
+ "You've reached this month's request limit, per our <link><span> fair usage policy</span> </link>." ,
51
51
'jetpack-ai-client'
52
52
) ;
53
53
@@ -75,6 +75,7 @@ const useFairUsageNoticeMessage = () => {
75
75
rel = "noreferrer"
76
76
/>
77
77
) ,
78
+ span : < span /> ,
78
79
} ) ;
79
80
80
81
return fairUsageNoticeMessageElement ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const LightNudge = ( {
28
28
variant = "link"
29
29
target = { target }
30
30
>
31
- { isRedirecting ? redirectingText : buttonText }
31
+ < span > { isRedirecting ? redirectingText : buttonText } </ span >
32
32
</ Button >
33
33
) }
34
34
</ p >
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ export const Prompt = ( { initialPrompt = '' }: PromptProps ) => {
307
307
target = "_blank"
308
308
onClick = { onUpgradeClick }
309
309
>
310
- { __ ( 'Upgrade' , 'jetpack-ai-client' ) }
310
+ < span > { __ ( 'Upgrade' , 'jetpack-ai-client' ) } </ span >
311
311
</ Button >
312
312
</ >
313
313
) }
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export const UpgradeNudge = () => {
50
50
className = "is-primary"
51
51
onClick = { handleUpgradeClick }
52
52
>
53
- { buttonText }
53
+ < span > { buttonText } </ span >
54
54
</ Button >
55
55
</ div >
56
56
</ div >
Original file line number Diff line number Diff line change @@ -52,20 +52,20 @@ export const UpgradeScreen: FC< {
52
52
</ span >
53
53
54
54
< Button variant = "link" href = { upgradeInfoUrl } target = "_blank" >
55
- { __ ( 'Learn more about Jetpack AI.' , 'jetpack-ai-client' ) }
55
+ < span > { __ ( 'Learn more about Jetpack AI.' , 'jetpack-ai-client' ) } </ span >
56
56
</ Button >
57
57
</ div >
58
58
< div className = "jetpack-ai-logo-generator-modal__notice-actions" >
59
59
< Button variant = "tertiary" onClick = { onCancel } >
60
- { __ ( 'Cancel' , 'jetpack-ai-client' ) }
60
+ < span > { __ ( 'Cancel' , 'jetpack-ai-client' ) } </ span >
61
61
</ Button >
62
62
< Button
63
63
variant = "primary"
64
64
href = { upgradeURL }
65
65
target = "_blank"
66
66
onClick = { handleUpgradeClick }
67
67
>
68
- { __ ( 'Upgrade' , 'jetpack-ai-client' ) }
68
+ < span > { __ ( 'Upgrade' , 'jetpack-ai-client' ) } </ span >
69
69
</ Button >
70
70
</ div >
71
71
</ div >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const VisitSiteBanner: FC< {
44
44
target = "_blank"
45
45
onClick = { onVisitBlankTarget ? onVisitBlankTarget : null }
46
46
>
47
- { __ ( 'Learn more about Jetpack AI' , 'jetpack-ai-client' ) }
47
+ < span > { __ ( 'Learn more about Jetpack AI' , 'jetpack-ai-client' ) } </ span >
48
48
< Icon icon = { external } size = { 20 } />
49
49
</ Button >
50
50
</ div >
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const useFairUsageNoticeMessage = (): Element => {
33
33
34
34
const getFairUsageNoticeMessage = resetDateString => {
35
35
const fairUsageMessage = __ (
36
- "You've reached this month's request limit, per our <link>fair usage policy</link>." ,
36
+ "You've reached this month's request limit, per our <link><span> fair usage policy</span> </link>." ,
37
37
'jetpack-ai-client'
38
38
) ;
39
39
@@ -59,6 +59,7 @@ const useFairUsageNoticeMessage = (): Element => {
59
59
60
60
const fairUsageNoticeMessageElement = createInterpolateElement ( fairUsageNoticeMessage , {
61
61
link : < a href = { upgradeInfoUrl } target = "_blank" rel = "noreferrer" /> ,
62
+ span : < span /> ,
62
63
} ) ;
63
64
64
65
return fairUsageNoticeMessageElement ;
Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ export default function Upgrade( {
34
34
const requestLimit = currentTier ?. value && currentTier ?. value !== 1 ? currentTier . limit : 20 ;
35
35
36
36
const freeLimitUpgradePrompt = __ (
37
- 'You have reached the limit of <strong>20 free</strong> requests. <button>Upgrade to continue generating feedback.</button>' ,
37
+ 'You have reached the limit of <strong>20 free</strong> requests. <button><span> Upgrade to continue generating feedback.</span> </button>' ,
38
38
'jetpack'
39
39
) ;
40
40
const tierLimitUpgradePrompt = sprintf (
41
41
/* translators: number is the request limit for the current tier/plan */
42
42
__ (
43
- 'You have reached the limit of <strong>%d requests</strong>. <button>Upgrade to continue generating feedback.</button>' ,
43
+ 'You have reached the limit of <strong>%d requests</strong>. <button><span> Upgrade to continue generating feedback.</span> </button>' ,
44
44
'jetpack'
45
45
) ,
46
46
requestLimit
@@ -61,6 +61,7 @@ export default function Upgrade( {
61
61
{
62
62
strong : < strong /> ,
63
63
button : < Button variant = "link" onClick = { handleClick } href = { upgradeUrl } target = "_blank" /> ,
64
+ span : < span /> ,
64
65
}
65
66
) ;
66
67
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export function UsagePanel( {
129
129
href = { contactUsURL }
130
130
onClick = { handleContactUsClick }
131
131
>
132
- { __ ( 'Contact Us' , 'jetpack' ) }
132
+ < span > { __ ( 'Contact Us' , 'jetpack' ) } </ span >
133
133
</ Button >
134
134
</ >
135
135
) }
@@ -141,7 +141,7 @@ export function UsagePanel( {
141
141
href = { checkoutUrl }
142
142
onClick = { handleUpgradeClick }
143
143
>
144
- { upgradeButtonText }
144
+ < span > { upgradeButtonText } </ span >
145
145
</ Button >
146
146
) }
147
147
</ div >
You can’t perform that action at this time.
0 commit comments