Skip to content

Commit c73e7e2

Browse files
committed
wrap remaining links
1 parent 10cb2f3 commit c73e7e2

File tree

9 files changed

+16
-13
lines changed

9 files changed

+16
-13
lines changed

projects/js-packages/ai-client/src/components/quota-exceeded-message/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const useFairUsageNoticeMessage = () => {
4747

4848
const getFairUsageNoticeMessage = resetDateString => {
4949
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>.",
5151
'jetpack-ai-client'
5252
);
5353

@@ -75,6 +75,7 @@ const useFairUsageNoticeMessage = () => {
7575
rel="noreferrer"
7676
/>
7777
),
78+
span: <span />,
7879
} );
7980

8081
return fairUsageNoticeMessageElement;

projects/js-packages/ai-client/src/components/quota-exceeded-message/light-nudge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const LightNudge = ( {
2828
variant="link"
2929
target={ target }
3030
>
31-
{ isRedirecting ? redirectingText : buttonText }
31+
<span>{ isRedirecting ? redirectingText : buttonText }</span>
3232
</Button>
3333
) }
3434
</p>

projects/js-packages/ai-client/src/logo-generator/components/prompt.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export const Prompt = ( { initialPrompt = '' }: PromptProps ) => {
307307
target="_blank"
308308
onClick={ onUpgradeClick }
309309
>
310-
{ __( 'Upgrade', 'jetpack-ai-client' ) }
310+
<span>{ __( 'Upgrade', 'jetpack-ai-client' ) }</span>
311311
</Button>
312312
</>
313313
) }

projects/js-packages/ai-client/src/logo-generator/components/upgrade-nudge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const UpgradeNudge = () => {
5050
className="is-primary"
5151
onClick={ handleUpgradeClick }
5252
>
53-
{ buttonText }
53+
<span>{ buttonText }</span>
5454
</Button>
5555
</div>
5656
</div>

projects/js-packages/ai-client/src/logo-generator/components/upgrade-screen.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ export const UpgradeScreen: FC< {
5252
</span>
5353
&nbsp;
5454
<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>
5656
</Button>
5757
</div>
5858
<div className="jetpack-ai-logo-generator-modal__notice-actions">
5959
<Button variant="tertiary" onClick={ onCancel }>
60-
{ __( 'Cancel', 'jetpack-ai-client' ) }
60+
<span>{ __( 'Cancel', 'jetpack-ai-client' ) }</span>
6161
</Button>
6262
<Button
6363
variant="primary"
6464
href={ upgradeURL }
6565
target="_blank"
6666
onClick={ handleUpgradeClick }
6767
>
68-
{ __( 'Upgrade', 'jetpack-ai-client' ) }
68+
<span>{ __( 'Upgrade', 'jetpack-ai-client' ) }</span>
6969
</Button>
7070
</div>
7171
</div>

projects/js-packages/ai-client/src/logo-generator/components/visit-site-banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const VisitSiteBanner: FC< {
4444
target="_blank"
4545
onClick={ onVisitBlankTarget ? onVisitBlankTarget : null }
4646
>
47-
{ __( 'Learn more about Jetpack AI', 'jetpack-ai-client' ) }
47+
<span>{ __( 'Learn more about Jetpack AI', 'jetpack-ai-client' ) }</span>
4848
<Icon icon={ external } size={ 20 } />
4949
</Button>
5050
</div>

projects/js-packages/ai-client/src/logo-generator/hooks/use-fair-usage-notice-message.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const useFairUsageNoticeMessage = (): Element => {
3333

3434
const getFairUsageNoticeMessage = resetDateString => {
3535
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>.",
3737
'jetpack-ai-client'
3838
);
3939

@@ -59,6 +59,7 @@ const useFairUsageNoticeMessage = (): Element => {
5959

6060
const fairUsageNoticeMessageElement = createInterpolateElement( fairUsageNoticeMessage, {
6161
link: <a href={ upgradeInfoUrl } target="_blank" rel="noreferrer" />,
62+
span: <span />,
6263
} );
6364

6465
return fairUsageNoticeMessageElement;

projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-assistant-plugin-sidebar/upgrade.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ export default function Upgrade( {
3434
const requestLimit = currentTier?.value && currentTier?.value !== 1 ? currentTier.limit : 20;
3535

3636
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>',
3838
'jetpack'
3939
);
4040
const tierLimitUpgradePrompt = sprintf(
4141
/* translators: number is the request limit for the current tier/plan */
4242
__(
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>',
4444
'jetpack'
4545
),
4646
requestLimit
@@ -61,6 +61,7 @@ export default function Upgrade( {
6161
{
6262
strong: <strong />,
6363
button: <Button variant="link" onClick={ handleClick } href={ upgradeUrl } target="_blank" />,
64+
span: <span />,
6465
}
6566
);
6667

projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/usage-panel/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function UsagePanel( {
129129
href={ contactUsURL }
130130
onClick={ handleContactUsClick }
131131
>
132-
{ __( 'Contact Us', 'jetpack' ) }
132+
<span>{ __( 'Contact Us', 'jetpack' ) }</span>
133133
</Button>
134134
</>
135135
) }
@@ -141,7 +141,7 @@ export function UsagePanel( {
141141
href={ checkoutUrl }
142142
onClick={ handleUpgradeClick }
143143
>
144-
{ upgradeButtonText }
144+
<span>{ upgradeButtonText }</span>
145145
</Button>
146146
) }
147147
</div>

0 commit comments

Comments
 (0)