Removing break all

Replacing jquery selectors and some other UI improvements

Removing jquery selector
Этот коммит содержится в:
Asaad Mahmood
2016-06-14 22:53:47 +05:00
коммит произвёл Joram Wilander
родитель af4110b2ed
Коммит f6b4a611d0
14 изменённых файлов: 254 добавлений и 138 удалений

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

@@ -370,6 +370,15 @@ export default class Sidebar extends React.Component {
this.setState({showDirectChannelsModal: false});
}
openLeftSidebar() {
if (Utils.isMobile()) {
setTimeout(() => {
document.querySelector('.app__body .inner-wrap').classList.add('move--right');
document.querySelector('.app__body .sidebar--left').classList.add('move--right');
});
}
}
createTutorialTip() {
const screens = [];
@@ -535,6 +544,7 @@ export default class Sidebar extends React.Component {
let tutorialTip = null;
if (this.state.showTutorialTip && channel.name === Constants.DEFAULT_CHANNEL) {
tutorialTip = this.createTutorialTip();
this.openLeftSidebar();
}
let link = '';