Compare commits

...

2 commits

Author SHA1 Message Date
Kongzibapt
aa62eaef6c Merge branch 'master' of https://git.etud.insa-toulouse.fr/bamarty/Site-Proximo 2021-02-07 09:06:10 +01:00
Kongzibapt
385a422add piste pour selected actions 2021-02-07 09:06:05 +01:00
2 changed files with 3 additions and 3 deletions

View file

@ -88,7 +88,7 @@ class ArticleDetails extends React.Component {
this.setState({selected:!this.state.selected},()=>{
console.log(this.state.selected)
if (this.state.selected){
this.props.select()
this.props.select(this.props.id)
} else {
this.props.deselect()
}

View file

@ -46,8 +46,8 @@ export default class Stock extends React.Component {
this.getArticles()
}
select = () => {
select = (id) => {
console.log(id)
this.setState({counter:this.state.counter+1},()=>{
console.log(this.state.counter)
})