Removed Introduction code from gabsocial.js
• Removed: - Introduction code from gabsocial.js
This commit is contained in:
parent
8d3a5dbac2
commit
81433b49fc
@ -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 <Introduction />
|
||||
// }
|
||||
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<ScrollContext>
|
||||
|
Loading…
x
Reference in New Issue
Block a user