Update tutorial channel names to reflect actual display names

Этот коммит содержится в:
JoramWilander
2016-04-01 09:11:27 -04:00
родитель 5feda35591
Коммит 9b92d88e9b
9 изменённых файлов: 74 добавлений и 17 удалений

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

@@ -1,18 +1,43 @@
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React from 'react';
import TutorialIntroScreens from './tutorial_intro_screens.jsx';
import ChannelStore from 'stores/channel_store.jsx';
import Constants from 'utils/constants.jsx';
import React from 'react';
export default class TutorialView extends React.Component {
constructor(props) {
super(props);
this.handleChannelChange = this.handleChannelChange.bind(this);
this.state = {
townSquare: ChannelStore.getByName(Constants.DEFAULT_CHANNEL)
};
}
componentDidMount() {
ChannelStore.addChangeListener(this.handleChannelChange);
}
componentWillUnmount() {
ChannelStore.removeChangeListener(this.handleChannelChange);
}
handleChannelChange() {
this.setState({
townSquare: ChannelStore.getByName(Constants.DEFAULT_CHANNEL)
});
}
render() {
return (
<div
id='app-content'
className='app__content'
>
<TutorialIntroScreens/>
<TutorialIntroScreens
townSquare={this.state.townSquare}
/>
</div>
);
}