Skip to content

Commit

Permalink
Remove cWRP from ColorWrap (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 authored and casesandberg committed Jan 8, 2020
1 parent af18438 commit 57fc5b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/common/ColorWrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export const ColorWrap = (Picker) => {
}, 100)
}

componentWillReceiveProps(nextProps) {
this.setState({
...color.toState(nextProps.color, this.state.oldHue),
})
static getDerivedStateFromProps(nextProps, state) {
return {
...color.toState(nextProps.color, state.oldHue),
}
}

handleChange = (data, event) => {
Expand Down

0 comments on commit 57fc5b5

Please sign in to comment.