piste pour selected actions
This commit is contained in:
parent
6d41983135
commit
385a422add
2 changed files with 3 additions and 3 deletions
|
@ -88,7 +88,7 @@ class ArticleDetails extends React.Component {
|
||||||
this.setState({selected:!this.state.selected},()=>{
|
this.setState({selected:!this.state.selected},()=>{
|
||||||
console.log(this.state.selected)
|
console.log(this.state.selected)
|
||||||
if (this.state.selected){
|
if (this.state.selected){
|
||||||
this.props.select()
|
this.props.select(this.props.id)
|
||||||
} else {
|
} else {
|
||||||
this.props.deselect()
|
this.props.deselect()
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,8 +47,8 @@ export default class Stock extends React.Component {
|
||||||
this.getArticles()
|
this.getArticles()
|
||||||
}
|
}
|
||||||
|
|
||||||
select = () => {
|
select = (id) => {
|
||||||
|
console.log(id)
|
||||||
this.setState({counter:this.state.counter+1},()=>{
|
this.setState({counter:this.state.counter+1},()=>{
|
||||||
console.log(this.state.counter)
|
console.log(this.state.counter)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue