Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 26 additions & 29 deletions apps/studio/src/modules/onboarding/components/connect-to-wpcom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,32 @@ export function OnboardingConnectToWpcom( { onSkip }: { onSkip: () => void } ) {
) ) }
</div>

<div data-testid="onboarding-legal" className="text-frame-text-secondary text-xs leading-5">
{ createInterpolateElement(
__(
'By continuing, you agree to our <tos_link>Terms of Service</tos_link> and have read our <privacy_link>Privacy Policy</privacy_link>.'
),
{
tos_link: (
<Button
className="learn-more-link !p-0 h-auto !text-xs"
variant="link"
onClick={ () => getIpcApi().openURL( getLocalizedLink( locale, 'a8cTos' ) ) }
/>
),
privacy_link: (
<Button
className="learn-more-link !p-0 h-auto !text-xs"
variant="link"
onClick={ () =>
getIpcApi().openURL( getLocalizedLink( locale, 'a8cPrivacyPolicy' ) )
}
/>
),
}
) }
</div>

<div className="flex flex-row gap-2 items-center">
<Tooltip disabled={ ! isOffline } icon={ offlineIcon } text={ offlineMessage }>
<Button
Expand Down Expand Up @@ -95,35 +121,6 @@ export function OnboardingConnectToWpcom( { onSkip }: { onSkip: () => void } ) {
</div>
</Tooltip>
</div>

<div
data-testid="onboarding-legal"
className="text-frame-text-secondary text-xs leading-5 shrink-0 pt-10"
>
{ createInterpolateElement(
__(
'By continuing, you agree to our <tos_link>Terms of Service</tos_link> and have read our <privacy_link>Privacy Policy</privacy_link>.'
),
{
tos_link: (
<Button
className="learn-more-link !p-0 h-auto !text-xs"
variant="link"
onClick={ () => getIpcApi().openURL( getLocalizedLink( locale, 'a8cTos' ) ) }
/>
),
privacy_link: (
<Button
className="learn-more-link !p-0 h-auto !text-xs"
variant="link"
onClick={ () =>
getIpcApi().openURL( getLocalizedLink( locale, 'a8cPrivacyPolicy' ) )
}
/>
),
}
) }
</div>
</div>
);
}