PLT-2549 - Improvements to theme stuff (#2657)

Этот коммит содержится в:
Asaad Mahmood
2016-04-07 23:37:50 +05:00
коммит произвёл Corey Hulen
родитель af98754d24
Коммит 5cf982e021
5 изменённых файлов: 731 добавлений и 728 удалений

Просмотреть файл

@@ -1,6 +1,7 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import $ from 'jquery';
import UserStore from 'stores/user_store.jsx';
import TeamStore from 'stores/team_store.jsx';
import PreferenceStore from 'stores/preference_store.jsx';
@@ -34,6 +35,12 @@ export default class TutorialIntroScreens extends React.Component {
this.state = {currentScreen: 0};
}
componentDidMount() {
$('body').addClass('app__body');
}
componentWillUnmount() {
$('body').removeClass('app__body');
}
handleNext() {
if (this.state.currentScreen < 2) {
this.setState({currentScreen: this.state.currentScreen + 1});