...
|
...
|
@@ -45,13 +45,13 @@ export default class Product extends Component { |
|
|
this.swipeable = {};
|
|
|
}
|
|
|
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
if (this.props.data.isDeleting
|
|
|
&& this.props.data.isDeleting != nextProps.data.isDeleting) {
|
|
|
this.state.currentlyOpenSwipeable && this.state.currentlyOpenSwipeable.recenter();
|
|
|
this.setState({currentlyOpenSwipeable: null});
|
|
|
}
|
|
|
}
|
|
|
// componentWillReceiveProps(nextProps) {
|
|
|
// if (this.props.data.isDeleting
|
|
|
// && this.props.data.isDeleting != nextProps.data.isDeleting) {
|
|
|
// this.state.currentlyOpenSwipeable && this.state.currentlyOpenSwipeable.recenter();
|
|
|
// this.setState({currentlyOpenSwipeable: null});
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
handleScroll() {
|
|
|
const {currentlyOpenSwipeable} = this.state;
|
...
|
...
|
|