From f79101a279596566d6ee7076d9c8adbc259d97ed Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Thu, 29 Jun 2017 12:40:13 -0700 Subject: Fixes issues with the tutorial (#6786) * PLT-6907 Increased hit area for tutorial * PLT-6907 Show the tutorial no matter what channel you're in * Fixing eslint issue --- webapp/components/needs_team/needs_team.jsx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'webapp/components/needs_team/needs_team.jsx') diff --git a/webapp/components/needs_team/needs_team.jsx b/webapp/components/needs_team/needs_team.jsx index e86e4fb11..ba3200b43 100644 --- a/webapp/components/needs_team/needs_team.jsx +++ b/webapp/components/needs_team/needs_team.jsx @@ -6,7 +6,6 @@ import PropTypes from 'prop-types'; import $ from 'jquery'; -import {browserHistory} from 'react-router/es6'; import * as Utils from 'utils/utils.jsx'; import TeamStore from 'stores/team_store.jsx'; import UserStore from 'stores/user_store.jsx'; @@ -18,7 +17,6 @@ import {startPeriodicSync, stopPeriodicSync} from 'actions/websocket_actions.jsx import {loadProfilesForSidebar} from 'actions/user_actions.jsx'; import Constants from 'utils/constants.jsx'; -const TutorialSteps = Constants.TutorialSteps; const Preferences = Constants.Preferences; import AnnouncementBar from 'components/announcement_bar'; @@ -102,14 +100,6 @@ export default class NeedsTeam extends React.Component { } } - componentWillMount() { - // Go to tutorial if we are first arriving - const tutorialStep = PreferenceStore.getInt(Preferences.TUTORIAL_STEP, UserStore.getCurrentId(), 999); - if (tutorialStep <= TutorialSteps.INTRO_SCREENS) { - browserHistory.push(TeamStore.getCurrentTeamRelativeUrl() + '/tutorial'); - } - } - componentDidMount() { TeamStore.addChangeListener(this.onTeamChanged); PreferenceStore.addChangeListener(this.onPreferencesChanged); -- cgit v1.2.3-1-g7c22