From 12896bd23eeba79884245c1c29fdc568cf21a7fa Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 14 Mar 2016 08:50:46 -0400 Subject: Converting to Webpack. Stage 1. --- .../user_settings/premade_theme_chooser.jsx | 58 ---------------------- 1 file changed, 58 deletions(-) delete mode 100644 web/react/components/user_settings/premade_theme_chooser.jsx (limited to 'web/react/components/user_settings/premade_theme_chooser.jsx') diff --git a/web/react/components/user_settings/premade_theme_chooser.jsx b/web/react/components/user_settings/premade_theme_chooser.jsx deleted file mode 100644 index 80ff8c4de..000000000 --- a/web/react/components/user_settings/premade_theme_chooser.jsx +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import * as Utils from '../../utils/utils.jsx'; -import Constants from '../../utils/constants.jsx'; - -export default class PremadeThemeChooser extends React.Component { - constructor(props) { - super(props); - this.state = {}; - } - render() { - const theme = this.props.theme; - - const premadeThemes = []; - for (const k in Constants.THEMES) { - if (Constants.THEMES.hasOwnProperty(k)) { - const premadeTheme = $.extend(true, {}, Constants.THEMES[k]); - - let activeClass = ''; - if (premadeTheme.type === theme.type) { - activeClass = 'active'; - } - - premadeThemes.push( -
-
this.props.updateTheme(premadeTheme)} - > - -
-
- ); - } - } - - return ( -
- {premadeThemes} -
- ); - } -} - -PremadeThemeChooser.propTypes = { - theme: React.PropTypes.object.isRequired, - updateTheme: React.PropTypes.func.isRequired -}; -- cgit v1.2.3-1-g7c22