Skip to content

Instantly share code, notes, and snippets.

@slorber
Created October 31, 2014 10:53
Show Gist options
  • Select an option

  • Save slorber/28e948a8c64bc2f02ef7 to your computer and use it in GitHub Desktop.

Select an option

Save slorber/28e948a8c64bc2f02ef7 to your computer and use it in GitHub Desktop.
var MenuSection = AtomReact.createPureClass("MenuSection",{
propTypes: {
appStateCursor: AtomReact.PropTypes.isCursor
},
render: function() {
return (
<section id="menu">
<Menu
currentUserCursor={this.props.appStateCursor.follow("stores","currentUser","user").asyncSuccess()}
interactionStoreCursor={this.props.appStateCursor.follow("stores","interaction")}
currentSpaceStoreCursor={this.props.appStateCursor.follow("stores","currentSpace")}
onboardingStore={this.props.appStateCursor.follow("stores","onboardingSteps")}
newbuttonCursor={this.props.appStateCursor.follow("stores","newButton")}
notificationStore={this.props.appStateCursor.follow("stores","notification")}
menuStore={this.props.appStateCursor.follow("stores","menu")}
/>
</section>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment