| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fec5d10 commit 4197313
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ import { init as initCookieRefresh } from 'common/modules/identity/cookierefresh | |||
| 19 | 19 | import { initNavigation } from 'common/modules/navigation/navigation'; | |
| 20 | 20 | import { Profile } from 'common/modules/navigation/profile'; | |
| 21 | 21 | import { Search } from 'common/modules/navigation/search'; | |
| 22 | - import {emailSignInBanner} from 'common/modules/identity/email-sign-in-banner'; | ||
| 22 | + import { emailSignInBanner } from 'common/modules/identity/email-sign-in-banner'; | ||
| 23 | 23 | import { | |
| 24 | 24 | initMembership, | |
| 25 | 25 | membershipBanner, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,15 +1,17 @@ | |||
| 1 | 1 | // @flow | |
| 2 | 2 | ||
| 3 | - import fastdom from 'lib/fastdom-promise'; | ||
| 4 | 3 | import { Message, hasUserAcknowledgedBanner } from 'common/modules/ui/message'; | |
| 5 | 4 | import config from 'lib/config'; | |
| 6 | 5 | import type { Banner } from 'common/modules/ui/bannerPicker'; | |
| 7 | 6 | ||
| 8 | 7 | const messageCode: string = 'email-sign-in-banner'; | |
| 9 | 8 | ||
| 10 | - const signInLink = `${config.get('page.idUrl')}/login?returnUrl=https://theguardian.com/email-newsletters`; | ||
| 9 | + const signInLink = `${config.get( | ||
| 10 | + 'page.idUrl' | ||
| 11 | + )}/login?returnUrl=https://theguardian.com/email-newsletters`; | ||
| 11 | 12 | ||
| 12 | - const isInExperiment = ():boolean => config.get('switches.idEmailSignInUpsell'); | ||
| 13 | + const isInExperiment = (): boolean => | ||
| 14 | + config.get('switches.idEmailSignInUpsell'); | ||
| 13 | 15 | ||
| 14 | 16 | const canShow: () => Promise<boolean> = () => | |
| 15 | 17 | Promise.resolve( | |
@@ -24,7 +26,7 @@ const show: () => void = () => { | |||
| 24 | 26 | siteMessageComponentName: messageCode, | |
| 25 | 27 | }); | |
| 26 | 28 | message.show( | |
| 27 | - `Enjoying this newsletter? Sign in to get more.` | ||
| 29 | + `Enjoying this newsletter? <a href="${signInLink}">Sign in</a> to get more.` | ||
| 28 | 30 | ); | |
| 29 | 31 | }; | |
| 30 | 32 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments