diff --git a/src/OnboardingSPA/components/Header/components/SiteBuildHeader/index.js b/src/OnboardingSPA/components/Header/components/SiteBuildHeader/index.js index e41262533..34301f39d 100644 --- a/src/OnboardingSPA/components/Header/components/SiteBuildHeader/index.js +++ b/src/OnboardingSPA/components/Header/components/SiteBuildHeader/index.js @@ -1,8 +1,15 @@ import { memo } from '@wordpress/element'; import { Fill } from '@wordpress/components'; +import { useLocation } from 'react-router-dom'; import HeaderEnd from './HeaderEnd'; -import { HEADER_END, HEADER_SITEBUILD } from '../../../../../constants'; +import ExitToWordPress from '../../../ExitToWordPress'; +import { + HEADER_START, + HEADER_END, + HEADER_SITEBUILD, +} from '../../../../../constants'; +import { stepWelcome } from '../../../../steps/GetStarted/Welcome/step'; /** * Interface header rendered into header render prop in . @@ -10,10 +17,20 @@ import { HEADER_END, HEADER_SITEBUILD } from '../../../../../constants'; * @return {WPComponent} Header */ const SiteBuildHeader = () => { + const location = useLocation(); + const isGettingStarted = stepWelcome.path === location?.pathname; + return ( - - - + <> + + { isGettingStarted ? ( + + ) : null } + + + + + ); };