From 2f431240a4fcbf8b693e6bc1f80192aae3ff92bf Mon Sep 17 00:00:00 2001 From: nickago Date: Thu, 13 Aug 2015 08:54:05 -0700 Subject: Cosmetic refactoring --- web/react/components/setting_item_min.jsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'web/react/components') diff --git a/web/react/components/setting_item_min.jsx b/web/react/components/setting_item_min.jsx index 135226900..3c87e416e 100644 --- a/web/react/components/setting_item_min.jsx +++ b/web/react/components/setting_item_min.jsx @@ -2,16 +2,23 @@ // See License.txt for license information. module.exports = React.createClass({ + displayName: 'SettingsItemMin', + propTypes: { + title: React.PropTypes.string, + disableOpen: React.PropTypes.bool, + updateSection: React.PropTypes.func, + describe: React.PropTypes.string + }, render: function() { var editButton = ''; - if(!this.props.disableOpen) { - editButton =
  • Edit
  • ; + if (!this.props.disableOpen) { + editButton =
  • Edit
  • ; } return ( -