fix(prefs): Use labels instead of email addresses

This commit is contained in:
Ben Gotow 2016-06-08 15:17:06 -07:00
parent ec0690fdc7
commit 4bf36ebe36
2 changed files with 4 additions and 4 deletions

View file

@ -42,11 +42,11 @@ export default class PreferencesSignatures extends React.Component {
_renderAccountPicker() {
const options = this.state.accounts.map(account =>
<option value={account.id} key={account.id}>{account.emailAddress}</option>
<option value={account.id} key={account.id}>{account.label}</option>
);
return (
<select value={this.state.currentAccountId} onChange={this._onSelectAccount}>
<select value={this.state.currentAccountId} onChange={this._onSelectAccount} style={{minWidth: 200}}>
{options}
</select>
);

View file

@ -134,14 +134,14 @@ class PreferencesMailRules extends React.Component {
_renderAccountPicker() {
const options = this.state.accounts.map(account =>
<option value={account.accountId} key={account.accountId}>{account.emailAddress}</option>
<option value={account.accountId} key={account.accountId}>{account.label}</option>
);
return (
<select
value={this.state.currentAccount.accountId}
onChange={this._onSelectAccount}
style={{margin: 0}}
style={{margin: 0, minWidth: 200}}
>
{options}
</select>