Skip to content

Commit

Permalink
Tidy up, remove prefetch while we work on a CORS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lsl committed Jan 21, 2021
1 parent 46f62dc commit 2279086
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useViewportMatch } from '@wordpress/compose';
import { useI18n } from '@automattic/react-i18n';
import { SkipButton, NextButton } from '@automattic/onboarding';
import config from 'calypso/config';
import { useLocale } from '@automattic/i18n-utils';

/**
* Internal dependencies
Expand All @@ -20,7 +19,7 @@ import useStepNavigation from '../../hooks/use-step-navigation';
import { recordVerticalSkip, recordSiteTitleSkip } from '../../lib/analytics';
import Arrow from './arrow';
import { isGoodDefaultDomainQuery } from '../../lib/is-good-default-domain-query';
import { prefetchDesignThumbs } from '../../available-designs';

/**
* Style dependencies
*/
Expand Down Expand Up @@ -57,13 +56,6 @@ const AcquireIntent: React.FunctionComponent = () => {
has_selected_site_title: hasSiteTitle(),
} ) );

const locale = useLocale();
React.useEffect( () => {
if ( config.isEnabled( 'gutenboarding/mshot-preview' ) ) {
prefetchDesignThumbs( locale );
}
}, [ locale ] );

const handleSkip = () => {
skipSiteVertical();
recordVerticalSkip();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ const DesignSelector: React.FunctionComponent = () => {
} }
>
<span className="design-selector__image-frame">
{
// We temporarily show pre-generated screenshots until we can generate tall versions dynamically using mshots.
// See `bin/generate-gutenboarding-design-thumbnails.js` for generating screenshots.
// https://github.com/Automattic/mShots/issues/16
// https://github.com/Automattic/wp-calypso/issues/40564
}
{ isEnabled( 'gutenboarding/mshot-preview' ) ? (
<MShotsImage
url={ getDesignUrl( design, locale ) }
Expand Down

0 comments on commit 2279086

Please sign in to comment.