mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-09 00:41:40 +00: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:
parent
b04247dd5a
commit
58292f71eb
1 changed files with 10 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue