Created
          April 2, 2017 22:15 
        
      - 
      
 - 
        
Save carlosble/0c28de1038ba9032506ec74ddafc299b to your computer and use it in GitHub Desktop.  
    Invoking action from component
  
        
  
    
      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
    
  
  
    
  | onSubmit(event) { | |
| event.preventDefault(); | |
| let notifier = this.props.notifier; | |
| this.props.actions.saveProfile(this.props.profile).then((success)=>{ | |
| notifier.showSuccess(success); | |
| }, (error) => { | |
| notifier.showError(error); | |
| }) | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment