-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add currency selector to settings page #5713
Conversation
@@ -43,14 +45,20 @@ class WorkspaceSettingsPage extends React.Component { | |||
name: props.policy.name, |
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.
props.policy
is missing from the propTypes
. Can you please add it?
*/ | ||
getCurrencyItems() { | ||
const currencyListKeys = _.keys(this.props.currencyList); | ||
const a = _.map(currencyListKeys, currencyCode => ({ |
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.
Don't use a short variable and just use return _.map();
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.
Oh I was debugging this and added it for easy inspection, removing it
@@ -67,6 +75,19 @@ class WorkspaceSettingsPage extends React.Component { | |||
this.setState({previewAvatarURL: '', avatarURL: ''}); | |||
} | |||
|
|||
/** | |||
* |
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 extra line
size={CONST.AVATAR_SIZE.LARGE} | ||
DefaultAvatar={() => ( | ||
<Icon | ||
src={Workspace} |
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.
I think this is supposed to be Camera
🚀 Deployed to production by @roryabraham in version: 1.1.8-9 🚀
|
Details
Fixed Issues
$ GH_LINK
Tests
QA Steps
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android