From 2bbedd9def2a782f370fb5280994ea0ecbf8a7c7 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 18 May 2017 09:28:18 -0400 Subject: 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 --- webapp/components/search_results_item.jsx | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'webapp/components/search_results_item.jsx') 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 }; -- cgit v1.2.3-1-g7c22