Skip to content

Commit

Permalink
fix prop types and remove unused onyx subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
arosiclair committed Oct 31, 2023
1 parent e47ef42 commit 6b48578
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 3 additions & 2 deletions src/js/component/assignee/Assignee.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import PropTypes from 'prop-types';

const propTypes = {
/** The GitHub URL for the assignee */
html_url: React.PropTypes.string.isRequired,
html_url: PropTypes.string.isRequired,

/** The login of the assignee */
login: React.PropTypes.string.isRequired,
login: PropTypes.string.isRequired,
};

function Assignee(props) {
Expand Down
9 changes: 2 additions & 7 deletions src/js/module/dashboard/FormPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import $ from 'jquery';
import React from 'react';
import _ from 'underscore';
import PropTypes from 'prop-types';
import {withOnyx} from 'react-native-onyx';
import * as Preferences from '../../lib/actions/Preferences';
import Title from '../../component/panel-title/Title';

Expand Down Expand Up @@ -56,7 +55,7 @@ class FormPassword extends React.Component {
<input
ref={el => this.input = el}
type="password"
htmlid="password"
id="password"
name="password"
className="input-block"
required
Expand Down Expand Up @@ -90,8 +89,4 @@ class FormPassword extends React.Component {
FormPassword.propTypes = propTypes;
FormPassword.defaultProps = defaultProps;

export default withOnyx({
preferences: {
key: 'preferences',
},
})(FormPassword);
export default FormPassword;

0 comments on commit 6b48578

Please sign in to comment.