Removed default introduction text from last slide of onboarding
• Removed: - default introduction text from last slide of onboarding
This commit is contained in:
parent
81ddccbdfd
commit
98e996ef54
@ -11,10 +11,6 @@ import { me } from '../initial_state'
|
|||||||
import { saveShownOnboarding } from '../actions/onboarding'
|
import { saveShownOnboarding } from '../actions/onboarding'
|
||||||
import { fetchGroups } from '../actions/groups'
|
import { fetchGroups } from '../actions/groups'
|
||||||
import { saveUserProfileInformation } from '../actions/user'
|
import { saveUserProfileInformation } from '../actions/user'
|
||||||
import {
|
|
||||||
changeCompose,
|
|
||||||
clearCompose,
|
|
||||||
} from '../actions/compose'
|
|
||||||
import { makeGetAccount } from '../selectors'
|
import { makeGetAccount } from '../selectors'
|
||||||
import Button from '../components/button'
|
import Button from '../components/button'
|
||||||
import Divider from '../components/divider'
|
import Divider from '../components/divider'
|
||||||
@ -237,13 +233,8 @@ const mapStateToProps = (state) => ({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const mapDispatchToProps = (dispatch) => ({
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
onClearCompose: () => dispatch(clearCompose()),
|
|
||||||
onSaveShownOnboarding: () => dispatch(saveShownOnboarding()),
|
onSaveShownOnboarding: () => dispatch(saveShownOnboarding()),
|
||||||
onFetchFeaturedGroups: () => dispatch(fetchGroups('featured')),
|
onFetchFeaturedGroups: () => dispatch(fetchGroups('featured')),
|
||||||
setPlaceholderCompose() {
|
|
||||||
const defaultMessage = 'Hello everyone, I just joined Gab! I’m looking forward to speaking freely and meeting new friends.'
|
|
||||||
dispatch(changeCompose(defaultMessage))
|
|
||||||
},
|
|
||||||
onSaveUserProfileInformation(data) {
|
onSaveUserProfileInformation(data) {
|
||||||
dispatch(saveUserProfileInformation(data))
|
dispatch(saveUserProfileInformation(data))
|
||||||
},
|
},
|
||||||
@ -258,8 +249,6 @@ class Introduction extends ImmutablePureComponent {
|
|||||||
groupIds: ImmutablePropTypes.list,
|
groupIds: ImmutablePropTypes.list,
|
||||||
isSubmitting: PropTypes.bool.isRequired,
|
isSubmitting: PropTypes.bool.isRequired,
|
||||||
shownOnboarding: PropTypes.bool.isRequired,
|
shownOnboarding: PropTypes.bool.isRequired,
|
||||||
setPlaceholderCompose: PropTypes.func.isRequired,
|
|
||||||
onClearCompose: PropTypes.func.isRequired,
|
|
||||||
onSaveShownOnboarding: PropTypes.func.isRequired,
|
onSaveShownOnboarding: PropTypes.func.isRequired,
|
||||||
onFetchFeaturedGroups: PropTypes.func.isRequired,
|
onFetchFeaturedGroups: PropTypes.func.isRequired,
|
||||||
onSaveUserProfileInformation: PropTypes.func.isRequired,
|
onSaveUserProfileInformation: PropTypes.func.isRequired,
|
||||||
@ -273,7 +262,6 @@ class Introduction extends ImmutablePureComponent {
|
|||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
window.addEventListener('keyup', this.handleKeyUp)
|
window.addEventListener('keyup', this.handleKeyUp)
|
||||||
this.props.onFetchFeaturedGroups()
|
this.props.onFetchFeaturedGroups()
|
||||||
this.props.setPlaceholderCompose()
|
|
||||||
this.props.onSaveShownOnboarding()
|
this.props.onSaveShownOnboarding()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,7 +273,6 @@ class Introduction extends ImmutablePureComponent {
|
|||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
window.addEventListener('keyup', this.handleKeyUp)
|
window.addEventListener('keyup', this.handleKeyUp)
|
||||||
this.props.onClearCompose()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleDot = (e) => {
|
handleDot = (e) => {
|
||||||
@ -305,10 +292,6 @@ class Introduction extends ImmutablePureComponent {
|
|||||||
this.setState({
|
this.setState({
|
||||||
currentIndex: newIndex,
|
currentIndex: newIndex,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (newIndex === 4) {
|
|
||||||
this.props.onClearCompose()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSwipe = (index) => {
|
handleSwipe = (index) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user