Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Address review comments and fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pvagner committed Oct 2, 2018
1 parent e05ae29 commit 2b394c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/components/structures/UserSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1233,10 +1233,10 @@ module.exports = React.createClass({
value={this.presentableTextForThreepid(val)} disabled
/>
</div>
<AccessibleButton className="mx_UserSettings_threepidButton mx_filterFlipColor">
<img src="img/cancel-small.svg" width="14" height="14" alt={_t("Remove")}
<div className="mx_UserSettings_threepidButton mx_filterFlipColor">
<AccessibleButton element="img" src="img/cancel-small.svg" width="14" height="14" alt={_t("Remove")}
onClick={onRemoveClick} />
</AccessibleButton>
</div>
</div>
);
});
Expand All @@ -1258,9 +1258,9 @@ module.exports = React.createClass({
blurToCancel={false}
onValueChanged={this._onAddEmailEditFinished} />
</div>
<AccessibleButton className="mx_UserSettings_threepidButton mx_filterFlipColor">
<img src="img/plus.svg" width="14" height="14" alt={_t("Add")} onClick={this._addEmail} />
</AccessibleButton>
<div className="mx_UserSettings_threepidButton mx_filterFlipColor">
<AccessibleButton element="img" src="img/plus.svg" width="14" height="14" alt={_t("Add")} onClick={this._addEmail} />
</div>
</div>
);
}
Expand Down Expand Up @@ -1339,14 +1339,14 @@ module.exports = React.createClass({
<ChangeAvatar ref="changeAvatar" initialAvatarUrl={avatarUrl}
showUploadSection={false} className="mx_UserSettings_avatarPicker_img" />
</div>
<AccessibleButton className="mx_UserSettings_avatarPicker_edit">
<div className="mx_UserSettings_avatarPicker_edit">
<label htmlFor="avatarInput" ref="file_label">
<img src="img/camera.svg" className="mx_filterFlipColor"
alt={_t("Upload avatar")} title={_t("Upload avatar")}
width="17" height="15" />
</label>
<input id="avatarInput" type="file" onChange={this.onAvatarSelected} />
</AccessibleButton>
</div>
</div>
</div>

Expand Down
1 change: 0 additions & 1 deletion src/components/views/elements/AppWarning.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react'; // eslint-disable-line no-unused-vars
import PropTypes from 'prop-types';
import { _t } from '../../../languageHandler';

const AppWarning = (props) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/globals/CookieBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default class CookieBar extends React.Component {
{ _t("Yes, I want to help!") }
</AccessibleButton>
<AccessibleButton className="mx_MatrixToolbar_close" onClick={this.onReject}>
<img src="img/cancel.svg" width="18" height="18" alt={_t('Close')}/>
<img src="img/cancel.svg" width="18" height="18" alt={_t('Close')} />
</AccessibleButton>
</div>
);
Expand Down

0 comments on commit 2b394c1

Please sign in to comment.