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:
Yan Sern 2024-05-20 19:04:13 +08:00 committed by GitHub
parent ce42e92a80
commit caf1ee325b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 23 deletions

View File

@ -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>

View File

@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: Hide site title when entering from Entrepreneur signup flow.