From 2bbedd9def2a782f370fb5280994ea0ecbf8a7c7 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
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/admin_console/boolean_setting.jsx | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

(limited to 'webapp/components/admin_console/boolean_setting.jsx')

diff --git a/webapp/components/admin_console/boolean_setting.jsx b/webapp/components/admin_console/boolean_setting.jsx
index aaceab7f3..45c23c869 100644
--- a/webapp/components/admin_console/boolean_setting.jsx
+++ b/webapp/components/admin_console/boolean_setting.jsx
@@ -1,3 +1,5 @@
+import PropTypes from 'prop-types';
+
 // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
 // See License.txt for license information.
 
@@ -85,13 +87,13 @@ BooleanSetting.defaultProps = {
 };
 
 BooleanSetting.propTypes = {
-    id: React.PropTypes.string.isRequired,
-    label: React.PropTypes.node.isRequired,
-    value: React.PropTypes.bool.isRequired,
-    onChange: React.PropTypes.func.isRequired,
-    trueText: React.PropTypes.node,
-    falseText: React.PropTypes.node,
-    disabled: React.PropTypes.bool.isRequired,
-    disabledText: React.PropTypes.node,
-    helpText: React.PropTypes.node.isRequired
+    id: PropTypes.string.isRequired,
+    label: PropTypes.node.isRequired,
+    value: PropTypes.bool.isRequired,
+    onChange: PropTypes.func.isRequired,
+    trueText: PropTypes.node,
+    falseText: PropTypes.node,
+    disabled: PropTypes.bool.isRequired,
+    disabledText: PropTypes.node,
+    helpText: PropTypes.node.isRequired
 };
-- 
cgit v1.2.3-1-g7c22

