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
9 changes: 7 additions & 2 deletions src/modules/add-site/components/options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ export default function AddSiteOptions( { onOptionSelect }: AddSiteOptionsProps
const { __ } = useI18n();
const { enableBlueprints } = useFeatureFlags();
const isOffline = useOffline();
const offlineMessage = __( "You're currently offline." );
const blueprintOfflineMessage = __(
'Starting from a Blueprint requires an internet connection.'
);
const importOfflineMessage = __( 'Importing a site requires an internet connection.' );

return (
<VStack className="text-center w-full" alignment="top" spacing="3">
Expand All @@ -106,14 +109,16 @@ export default function AddSiteOptions( { onOptionSelect }: AddSiteOptionsProps
description={ __( 'Choose a featured Blueprint or use your own' ) }
onClick={ () => onOptionSelect( 'blueprint' ) }
disabled={ isOffline }
disabledTooltip={ offlineMessage }
disabledTooltip={ blueprintOfflineMessage }
/>
) }
<OptionButton
icon={ <Icon icon={ download } size={ 24 } fill="#3858E9" /> }
title={ __( 'Pull an existing site' ) }
description={ __( 'Download directly from WordPress.com or Pressable' ) }
onClick={ () => onOptionSelect( 'pullRemote' ) }
disabled={ isOffline }
disabledTooltip={ importOfflineMessage }
/>
<OptionButton
icon={ <Icon icon={ backup } size={ 24 } fill="#3858E9" /> }
Expand Down