Skip to content

Instantly share code, notes, and snippets.

@vojtatranta
Created December 1, 2016 11:55
Show Gist options
  • Save vojtatranta/88abb2981ca86c0d2098bdc3fb38b335 to your computer and use it in GitHub Desktop.
Save vojtatranta/88abb2981ca86c0d2098bdc3fb38b335 to your computer and use it in GitHub Desktop.
import React from 'react'
export default class React extends React.Component {
state = this._getState(this.props)
_getState() {
return {
shouldDisplayOnboarding: this.context.onboardingStore.shouldDisplayCommonOnboarding(this.props.appLocation)
}
}
render() {
return (
(this.state.shouldDsiplayOnboarding ? this.props.children : null)
)
}
}
<CommonOnboarding location="documetn-view">
<OnboardingPhase phase="scale-onboarding">
<ScaleOnboarding doc={doc} />
</OnboardingPahse>
</CommonOnboarding>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment