Entrepreneur Signup: Hide site title when entering from Entrepreneur signup flow. (#47581)
* Hide site title when entering from entrepreneur signup. * Add changelog.
This commit is contained in:
parent
ce42e92a80
commit
caf1ee325b
|
@ -26,6 +26,7 @@ import { Link } from '@woocommerce/components';
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import { isEntrepreneurFlow } from '~/customize-store/design-with-ai/entrepreneur-flow';
|
||||
|
||||
const HUB_ANIMATION_DURATION = 0.3;
|
||||
|
||||
|
@ -98,29 +99,31 @@ export const SiteHub = forwardRef(
|
|||
</Link>
|
||||
</div>
|
||||
|
||||
<AnimatePresence>
|
||||
<motion.div
|
||||
layout={ false }
|
||||
animate={ {
|
||||
opacity: 1,
|
||||
} }
|
||||
exit={ {
|
||||
opacity: 0,
|
||||
} }
|
||||
className={ classnames(
|
||||
'edit-site-site-hub__site-title',
|
||||
{ 'is-transparent': isTransparent }
|
||||
) }
|
||||
transition={ {
|
||||
type: 'tween',
|
||||
duration: disableMotion ? 0 : 0.2,
|
||||
ease: 'easeOut',
|
||||
delay: 0.1,
|
||||
} }
|
||||
>
|
||||
{ decodeEntities( siteTitle ) }
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
{ ! isEntrepreneurFlow() && (
|
||||
<AnimatePresence>
|
||||
<motion.div
|
||||
layout={ false }
|
||||
animate={ {
|
||||
opacity: 1,
|
||||
} }
|
||||
exit={ {
|
||||
opacity: 0,
|
||||
} }
|
||||
className={ classnames(
|
||||
'edit-site-site-hub__site-title',
|
||||
{ 'is-transparent': isTransparent }
|
||||
) }
|
||||
transition={ {
|
||||
type: 'tween',
|
||||
duration: disableMotion ? 0 : 0.2,
|
||||
ease: 'easeOut',
|
||||
delay: 0.1,
|
||||
} }
|
||||
>
|
||||
{ decodeEntities( siteTitle ) }
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
) }
|
||||
</HStack>
|
||||
</HStack>
|
||||
</motion.div>
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
Significance: patch
|
||||
Type: update
|
||||
Comment: Hide site title when entering from Entrepreneur signup flow.
|
||||
|
||||
|
Loading…
Reference in New Issue