Skip to content

Commit

Permalink
Add support community themes
Browse files Browse the repository at this point in the history
DOT_ORG themes was renamed to community, so the site setup needs to be able to handle it while we decide if we want to supoprt both names or just community.
  • Loading branch information
gabrielcaires committed Dec 11, 2024
1 parent b5bd800 commit 069d7a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/signup/config/flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
BUNDLED_THEME,
MARKETPLACE_THEME,
isAssemblerSupported,
COMMUNITY_THEME,
} from '@automattic/design-picker';
import { isOnboardingGuidedFlow, isSiteAssemblerFlow } from '@automattic/onboarding';
import { isURL } from '@wordpress/url';
Expand Down Expand Up @@ -174,12 +175,14 @@ function getWithThemeDestination( {
} ) {
if (
! cartItems &&
[ DOT_ORG_THEME, PREMIUM_THEME, MARKETPLACE_THEME, BUNDLED_THEME ].includes( themeType )
[ DOT_ORG_THEME, COMMUNITY_THEME, PREMIUM_THEME, MARKETPLACE_THEME, BUNDLED_THEME ].includes(
themeType
)
) {
return `/setup/site-setup/designSetup?siteSlug=${ siteSlug }`;
}

if ( DOT_ORG_THEME === themeType ) {
if ( [ DOT_ORG_THEME, COMMUNITY_THEME ].includes( themeType ) ) {
return `/marketplace/theme/${ themeParameter }/install/${ siteSlug }`;
}

Expand Down

0 comments on commit 069d7a1

Please sign in to comment.