PhotoShop Picker onAccept onCancel not working?
I'm trying to run to separate functions when someone clicks the OK and Cancel button but I'm not sure if there's an issue or my syntax is wrong. This is what I have when using the input box that shows the color and opens up on click. Using React version 16.2.0

Wouldn't I just put inside <PhotoshopPicker onAccept={this.function} onCancel={this.anotherFunction} /> ?

Here's my code 

    return (
      <div>
        <div style={styles.swatch} onClick={this.handleClick}>
          <div style={styles.color} />
        </div>
        { this.state.displayColorPicker ? <div style={styles.popover} >
          <div style={styles.cover} onClick={this.handleClose} />
        <PhotoshopPicker color={this.state.color} onChange={() => console.log('testing 123')} 
          onAccept={() => console.log('yay')} />
        </div> : null }
      </div>
    )
 