PLT-2549 - Improvements to theme stuff (#2657)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
af98754d24
Коммит
5cf982e021
@@ -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});
|
||||
|
||||
Ссылка в новой задаче
Block a user