diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:04:13 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:11:58 -0700 |
commit | d8bd57901e33a7057e26e782e295099ffcc0da89 (patch) | |
tree | e12dfc8cad42b1576756d19d7fbfd82646a009bf /webapp/components/setting_item_min.jsx | |
parent | 7bc8e9a08dfde56387f946fdf5086252aa4d0491 (diff) | |
download | chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.gz chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.bz2 chat-d8bd57901e33a7057e26e782e295099ffcc0da89.zip |
Removing webapp
Diffstat (limited to 'webapp/components/setting_item_min.jsx')
-rw-r--r-- | webapp/components/setting_item_min.jsx | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/webapp/components/setting_item_min.jsx b/webapp/components/setting_item_min.jsx deleted file mode 100644 index b7752056d..000000000 --- a/webapp/components/setting_item_min.jsx +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import {FormattedMessage} from 'react-intl'; -import * as Utils from 'utils/utils.jsx'; - -import PropTypes from 'prop-types'; - -import React from 'react'; - -export default function SettingItemMin(props) { - let editButton = null; - let describeSection = null; - if (!props.disableOpen && Utils.isMobile()) { - editButton = ( - <li className='col-xs-12 col-sm-3 section-edit'> - <a - id={Utils.createSafeId(props.title) + 'Edit'} - className='theme' - href='#' - onClick={props.updateSection} - > - <i className='fa fa-pencil'/> - {props.describe} - </a> - </li> - ); - } else if (!props.disableOpen) { - editButton = ( - <li className='col-xs-12 col-sm-3 section-edit'> - <a - id={Utils.createSafeId(props.title) + 'Edit'} - className='theme' - href='#' - onClick={props.updateSection} - > - <i className='fa fa-pencil'/> - <FormattedMessage - id='setting_item_min.edit' - defaultMessage='Edit' - /> - </a> - </li> - ); - - describeSection = ( - <li - id={Utils.createSafeId(props.title) + 'Desc'} - className='col-xs-12 section-describe' - > - {props.describe} - </li> - ); - } - - return ( - <ul - className='section-min' - onClick={props.updateSection} - > - <li className='col-xs-12 col-sm-9 section-title'>{props.title}</li> - {editButton} - {describeSection} - </ul> - ); -} - -SettingItemMin.propTypes = { - title: PropTypes.node, - disableOpen: PropTypes.bool, - updateSection: PropTypes.func, - describe: PropTypes.node -}; |