From 81433b49fc09a63033210d55e806532719d58665 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Tue, 14 Jul 2020 01:01:36 -0500 Subject: [PATCH] Removed Introduction code from gabsocial.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - Introduction code from gabsocial.js --- .../gabsocial/containers/gabsocial.js | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/app/javascript/gabsocial/containers/gabsocial.js b/app/javascript/gabsocial/containers/gabsocial.js index 80986636..e607493e 100644 --- a/app/javascript/gabsocial/containers/gabsocial.js +++ b/app/javascript/gabsocial/containers/gabsocial.js @@ -2,7 +2,6 @@ import { Provider } from 'react-redux' import configureStore from '../store/configureStore' -import { INTRODUCTION_VERSION } from '../actions/onboarding' import { BrowserRouter, Route } from 'react-router-dom' import { ScrollContext } from 'react-router-scroll-4' import { IntlProvider, addLocaleData } from 'react-intl' @@ -16,7 +15,6 @@ import { getLocale } from '../locales' import initialState from '../initial_state' import { me } from '../initial_state' import UI from '../features/ui' -// import Introduction from '../features/introduction' import ErrorBoundary from '../components/error_boundary' import Display from './display' @@ -29,30 +27,9 @@ const hydrateAction = hydrateStore(initialState) store.dispatch(hydrateAction) store.dispatch(fetchCustomEmojis()) -const mapStateToProps = (state) => { - const account = state.getIn(['accounts', me]) - const showIntroduction = account ? state.getIn(['settings', 'introductionVersion'], 0) < INTRODUCTION_VERSION : false - - return { - showIntroduction, - } -} - -@connect(mapStateToProps) class GabSocialMount extends PureComponent { - static propTypes = { - showIntroduction: PropTypes.bool, - } - render () { - // Disabling introduction for launch - // const { showIntroduction } = this.props - // - // if (showIntroduction) { - // return - // } - return (