diff --git a/client/hosting/server-settings/components/cache-card/index.tsx b/client/hosting/server-settings/components/cache-card/index.tsx index 0ca0f552ece64b..2a0051d3d83f34 100644 --- a/client/hosting/server-settings/components/cache-card/index.tsx +++ b/client/hosting/server-settings/components/cache-card/index.tsx @@ -145,7 +145,7 @@ export default function CacheCard( { disabled }: CacheCardProps ) { : '' } > -
+ +
{ translate( 'Save your password somewhere safe. You will need to reset it to view it again.' ) } @@ -167,14 +219,13 @@ export const SftpCard = ( { return ( <> - + { translate( 'For security reasons, you must reset your password to view it.' ) } - + { translate( 'Reset password' ) } @@ -189,7 +240,7 @@ export const SftpCard = ( { __nextHasNoMarginBottom disabled={ isLoading || isSshAccessLoading } checked={ isSshAccessEnabled } - onChange={ () => toggleSshAccess() } + onChange={ handleToggleSshAccess } label={ translate( 'Enable SSH access for this site. {{supportLink}}Learn more{{/supportLink}}.', { @@ -202,7 +253,12 @@ export const SftpCard = ( { ) } /> { isSshAccessEnabled && ( - + ) }
{ translate( '{{strong}}Ready to access your website files?{{/strong}} Keep in mind, if mistakes happen you can restore your last backup, but will lose changes made after the backup date.', { @@ -287,31 +343,46 @@ export const SftpCard = ( { }, } ) } -