summaryrefslogtreecommitdiffstats
path: root/webapp/components/search_results_item.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-05-18 09:28:18 -0400
committerGitHub <noreply@github.com>2017-05-18 09:28:18 -0400
commit2bbedd9def2a782f370fb5280994ea0ecbf8a7c7 (patch)
treec97936580a81c561aa9884d1c414c54bd49d401a /webapp/components/search_results_item.jsx
parent63e599c43b66f0dd95f7f07c783c40fdaf89e3fb (diff)
downloadchat-2bbedd9def2a782f370fb5280994ea0ecbf8a7c7.tar.gz
chat-2bbedd9def2a782f370fb5280994ea0ecbf8a7c7.tar.bz2
chat-2bbedd9def2a782f370fb5280994ea0ecbf8a7c7.zip
Updating client dependencies. Switching to yarn. (#6433)
* Updating client dependancies. Switching to using yarn. * Updating React * Moving pure components to using function syntax (performance gains with newer react version) * Updating client dependancies. * Ignore .yarninstall * Enabling pre-lockfile because it's the entire point of using yarn. * Removing old webpack config * Moving to new prop-types * Fixing ESLint Errors * Updating jest snapshots. * Cleaning up package.json
Diffstat (limited to 'webapp/components/search_results_item.jsx')
-rw-r--r--webapp/components/search_results_item.jsx28
1 files changed, 15 insertions, 13 deletions
diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx
index d3b7cfe00..9b5f3b07e 100644
--- a/webapp/components/search_results_item.jsx
+++ b/webapp/components/search_results_item.jsx
@@ -22,6 +22,8 @@ import * as PostUtils from 'utils/post_utils.jsx';
import Constants from 'utils/constants.jsx';
const ActionTypes = Constants.ActionTypes;
+import PropTypes from 'prop-types';
+
import React from 'react';
import {FormattedMessage, FormattedDate} from 'react-intl';
import {browserHistory, Link} from 'react-router/es6';
@@ -318,17 +320,17 @@ export default class SearchResultsItem extends React.Component {
}
SearchResultsItem.propTypes = {
- post: React.PropTypes.object,
- lastPostCount: React.PropTypes.number,
- user: React.PropTypes.object,
- channel: React.PropTypes.object,
- compactDisplay: React.PropTypes.bool,
- isMentionSearch: React.PropTypes.bool,
- isFlaggedSearch: React.PropTypes.bool,
- term: React.PropTypes.string,
- useMilitaryTime: React.PropTypes.bool.isRequired,
- shrink: React.PropTypes.func,
- isFlagged: React.PropTypes.bool,
- isBusy: React.PropTypes.bool,
- status: React.PropTypes.string
+ post: PropTypes.object,
+ lastPostCount: PropTypes.number,
+ user: PropTypes.object,
+ channel: PropTypes.object,
+ compactDisplay: PropTypes.bool,
+ isMentionSearch: PropTypes.bool,
+ isFlaggedSearch: PropTypes.bool,
+ term: PropTypes.string,
+ useMilitaryTime: PropTypes.bool.isRequired,
+ shrink: PropTypes.func,
+ isFlagged: PropTypes.bool,
+ isBusy: PropTypes.bool,
+ status: PropTypes.string
};