Created
          December 1, 2016 11:55 
        
      - 
      
- 
        Save vojtatranta/88abb2981ca86c0d2098bdc3fb38b335 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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