mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Merge pull request #17287 from overleaf/jpa-wf-promo-change
[web] show plans page variant of Writefull promo w/ extension installed GitOrigin-RevId: 41fcccb3b1f70aadf0cb641a556e78c11b74e4d0
This commit is contained in:
@@ -80,6 +80,15 @@ function UserNotifications() {
|
||||
})
|
||||
const [dismissedWritefull, setDismissedWritefull] = useState(false)
|
||||
|
||||
const hasWritefullExtensionAlreadyInstalled =
|
||||
window.writefull?.type === 'extension'
|
||||
const usesWritefullIntegration =
|
||||
writefullIntegrationSplitTestEnabled || user?.writefull?.enabled
|
||||
const writefullBannerVariant =
|
||||
hasWritefullExtensionAlreadyInstalled || usesWritefullIntegration
|
||||
? 'plans-page'
|
||||
: 'chrome-store'
|
||||
|
||||
return (
|
||||
<div
|
||||
className={classNames('user-notifications', {
|
||||
@@ -102,7 +111,7 @@ function UserNotifications() {
|
||||
<ReconfirmationInfo />
|
||||
{!showWritefull && !dismissedWritefull && <GroupsAndEnterpriseBanner />}
|
||||
{showInrGeoBanner && <INRBanner />}
|
||||
{writefullIntegrationSplitTestEnabled || user?.writefull?.enabled ? (
|
||||
{writefullBannerVariant === 'plans-page' ? (
|
||||
<WritefullPremiumPromoBanner
|
||||
show={showWritefull}
|
||||
setShow={setShowWritefull}
|
||||
|
||||
Reference in New Issue
Block a user