-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove onboarding and referral screens (#1157)
- Loading branch information
Showing
18 changed files
with
4 additions
and
774 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
packages/web-app/src/modules/account-views/ReferralCodeEntryContainer.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
packages/web-app/src/modules/account-views/referral-views/ReferralOnboardingContainer.tsx
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
packages/web-app/src/modules/account-views/referral-views/ReferralWelcomeContainer.tsx
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-115 KB
...eb-app/src/modules/account-views/referral-views/assets/login-screen-rewards.png
Binary file not shown.
Binary file removed
BIN
-31.2 KB
...-app/src/modules/account-views/referral-views/assets/referrals-image-static.png
Binary file not shown.
30 changes: 3 additions & 27 deletions
30
...ages/web-app/src/modules/account-views/referral-views/components/CurrentReferralPanel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,9 @@ | ||
import classnames from 'classnames' | ||
import type { WithStyles } from 'react-jss' | ||
import withStyles from 'react-jss' | ||
import { ReferralCodeEntryContainer } from '../..' | ||
import { P, SectionHeader } from '../../../../components' | ||
import type { Referral } from '../../../referral/models' | ||
import { CurrentReferralProgress } from './CurrentReferralProgress' | ||
|
||
const styles = { | ||
container: { | ||
userSelect: 'none', | ||
paddingBottom: '1rem', | ||
}, | ||
} | ||
|
||
interface Props extends WithStyles<typeof styles> { | ||
interface Props { | ||
referral?: Referral | ||
} | ||
|
||
const _CurrentReferralPanel = ({ classes, referral }: Props) => ( | ||
<> | ||
{referral?.referralDefinition && <CurrentReferralProgress referral={referral} />} | ||
{!referral && ( | ||
<div className={classnames(classes.container)}> | ||
<SectionHeader>Enter A Code</SectionHeader> | ||
<P>Received a referral code? Enter it below so you can earn your referral bonus!</P> | ||
<ReferralCodeEntryContainer /> | ||
</div> | ||
)} | ||
</> | ||
) | ||
|
||
export const CurrentReferralPanel = withStyles(styles)(_CurrentReferralPanel) | ||
export const CurrentReferralPanel = ({ referral }: Props) => | ||
referral?.referralDefinition && <CurrentReferralProgress referral={referral} /> |
110 changes: 0 additions & 110 deletions
110
...eb-app/src/modules/account-views/referral-views/components/ReferralCodeEntryComponent.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.