-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Wallet): add empty state and redesign wallet page
# Conflicts: # src/components/LottieAnimations.js # src/pages/settings/Wallet/WalletPage/BaseWalletPage.js fix(wallet): item styles not matching designs fix(wallet): PropTypes console errors fix(wallet): popover menu positioning issues fix(wallet): flags used to determine if the empty state should be shown refactor(wallet): code style # Conflicts: # src/pages/settings/Wallet/PaymentMethodList.js fix(wallet): accessing wrong onyx key to look for assigned cards fix(wallet): spanish translations refactor(wallet): apply code style guidelines refactor(wallet): differentiate old wallet from new version using URL # Conflicts: # src/ROUTES.ts # src/libs/Navigation/AppNavigator/ModalStackNavigators.js # src/libs/Navigation/linkingConfig.js add padding top prop to IlustratedHeaderPageLayout # Conflicts: # src/components/IllustratedHeaderPageLayout.js remove header top padding replace hardcoded values with references to SCREENS # Conflicts: # src/SCREENS.ts add scroll to WalletPage, disable scroll in PaymentMethodList lint code # Conflicts: # src/pages/settings/Wallet/PaymentMethodList.js chore: reduce FastMoney animation filesize chore: add wallet backgriound color to light theme refactor: wallet route refactor: remove unused prop refactor(wallet): remove unnecessary wrapper component fix(wallet): linter issue refactor(wallet): remove underscore dependency chore(wallet): use old wallet instead of new one # Conflicts: # src/libs/Navigation/AppNavigator/ModalStackNavigators.js chore: apply prettier # Conflicts: # src/SCREENS.ts chore(wallet): remove card item left padding fix(section): missing subtitle refactor(wallet): use constant screen name for wallet domain cards # Conflicts: # src/libs/Navigation/linkingConfig.js refactor(wallet): use constant screen name for wallet fix(wallet): screen wrapper adding unnecessary vertical padding # Conflicts: # src/pages/settings/Wallet/WalletPage/WalletPage.js fix(wallet): wrong display name type fix(wallet): missing testID for screen wrapper and unnecessary fragment fix(wallet): unused import fix(wallet): status bar background color fix(wallet): revert scrollview removal fix(wallet): wrong section border radius fix(wallet): wrong payment item height fix(wallet): console error with nested Flatlist inside a ScrollView # Conflicts: # src/pages/settings/Wallet/PaymentMethodList.js fix(wallet): section card item styles refactor(wallet): replace direct import from colors with themeColors fix(wallet): popover menu positioning fix(wallet): transfer balance button styles refactor(wallet): remove paypal references fix(wallet): adjust spacings inside wallet section fix(wallet): bank accounts section spacing chore(wallet): fix linter issues refactor: remove unused paypal route # Conflicts: # src/ROUTES.ts chore(wallet): remove old wallet page # Conflicts: # src/pages/settings/Wallet/WalletPage/BaseWalletPage.js chore: rebase with main branch fix(wallet): wrong lineHeight type
- Loading branch information
1 parent
9699988
commit 83fd154
Showing
22 changed files
with
539 additions
and
227 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
assets/images/simple-illustrations/simple-illustration__handearth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
const ExpensifyLounge = require('../../assets/animations/ExpensifyLounge.json'); | ||
const FastMoney = require('../../assets/animations/FastMoney.json'); | ||
const Fireworks = require('../../assets/animations/Fireworks.json'); | ||
const Hands = require('../../assets/animations/Hands.json'); | ||
const PreferencesDJ = require('../../assets/animations/PreferencesDJ.json'); | ||
const ReviewingBankInfo = require('../../assets/animations/ReviewingBankInfo.json'); | ||
const WorkspacePlanet = require('../../assets/animations/WorkspacePlanet.json'); | ||
const SaveTheWorld = require('../../assets/animations/SaveTheWorld.json'); | ||
const Safe = require('../../assets/animations/Safe.json'); | ||
const Magician = require('../../assets/animations/Magician.json'); | ||
|
||
export {ExpensifyLounge, Fireworks, Hands, PreferencesDJ, ReviewingBankInfo, SaveTheWorld, WorkspacePlanet, Safe, Magician}; | ||
export {ExpensifyLounge, FastMoney, Fireworks, Hands, PreferencesDJ, ReviewingBankInfo, SaveTheWorld, WorkspacePlanet, Safe}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
import Section from './Section'; | ||
import styles from '../styles/styles'; | ||
|
||
const propTypes = { | ||
/** Contents to display inside the section */ | ||
children: PropTypes.node, | ||
|
||
/** The icon to display along with the title */ | ||
icon: PropTypes.func, | ||
|
||
/** The text to display in the subtitle of the section */ | ||
subtitle: PropTypes.string, | ||
|
||
/** The text to display in the title of the section */ | ||
title: PropTypes.string.isRequired, | ||
}; | ||
|
||
const defaultProps = { | ||
children: null, | ||
icon: null, | ||
subtitle: null, | ||
}; | ||
|
||
function WalletSection({children, icon, subtitle, title}) { | ||
return ( | ||
<Section | ||
icon={icon} | ||
subtitle={subtitle} | ||
title={title} | ||
containerStyles={[styles.p0, styles.pv5]} | ||
titleStyles={[styles.ph5]} | ||
subtitleStyles={[styles.ph5]} | ||
> | ||
{children} | ||
</Section> | ||
); | ||
} | ||
|
||
WalletSection.defaultProps = defaultProps; | ||
WalletSection.displayName = 'WalletSection'; | ||
WalletSection.propTypes = propTypes; | ||
|
||
export default WalletSection; |
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
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
Oops, something went wrong.