-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/sofi landing #6170
Feat/sofi landing #6170
Conversation
|
||
const SofiMigration = ({ buySellActions, cacheActions, fiatCurrency }: Props) => { | ||
const showModal = useCallback(() => { | ||
buySellActions.showModal({ origin: 'WelcomeModal' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
@@ -242,9 +243,22 @@ export const getData = (state: RootState) => { | |||
let bannerToShow: BannerType = null | |||
|
|||
const isKycEnabled = products?.kycVerification?.enabled | |||
// SOFI | |||
const sofiMigrationPending = selectors.modules.profile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see if i can optimize this logic
@@ -0,0 +1,93 @@ | |||
import React from 'react' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this file
if (isEmailVerified) { | ||
if (hasCowboyTag) { | ||
// When the user has the COWBOYS_2022 tag set from the backend we want to skip | ||
// the user straight to the dashboard and launch them into the Cowboys promo flyout | ||
nextProps.routerActions.push('/home') | ||
nextProps.saveGoal('cowboys2022', { firstLogin: true }) | ||
nextProps.runGoals() | ||
} else if (isSofi) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may associate before email verification
@@ -36,3 +36,13 @@ export const isBrowserSafari = () => { | |||
safari: '>12' | |||
}) | |||
} | |||
|
|||
export const isBrowserAndroid = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double check with android team if this is always the case for OS system
if (browser.getOSName() === 'Android') return true | ||
} | ||
|
||
export const isBrowserIOS = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a fallback to show both mobile links if anything is undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed in pairing.
Description (optional)
Add a concise explanation of the changes.
Testing Steps (optional)
Detail the steps required for the reviewer(s) to verify and test these changes.