-
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.
Merge pull request #26406 from pac-guerreiro/feature/empty-state-view…
…-and-add-bank-accounts-plus-wallet-tile feat(Wallet): add empty state and redesign wallet page
- Loading branch information
Showing
21 changed files
with
489 additions
and
205 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
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
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.