props;
                  
                  
                    const [allCheck, setAllCheck] = useState(true);
                  
                  
                  
                  
                  
                    return !data.custom ? (
                  
                  
                     data.value==='*' && data.isSelected===true? (<div>
                  
                  
                        <components.Option {...props}>
                  
                  
                         <Checkbox
                  
                  
                            style={{ color: "black" }}
                  
                  
                            checked={props[allCheck]}
                  
                  
                            onChange={this.handleCheck}
                  
                  
                           
                  
                  
                          />
                  
                  
                          {" "}
                  
                  
                          <label style={{ fontWeight: "500" }}>{props.label}</label>
                  
                  
                        </components.Option>
                  
                  
                      </div>):(
                  
                  
                         <div>
                  
                  
                         <components.Option {...props}>
                  
                  
                          <Checkbox
                  
                  
                             style={{ color: "black" }}
                  
                  
                             checked={props['isSelected']}
                  
                  
                             onChange={(e)=>{setAllCheck(false)}}
                  
                  
                            
                  
                  
                           />
                  
                  
                           {" "}
                  
                  
                           <label style={{ fontWeight: "500" }}>{props.label}</label>
                  
                  
                         </components.Option>
                  
                  
                         </div>
                  
                  
                      )
                  
                  
                    )
                  
                  
                
where do you get this.handleCheck from ?
sorry its just a event lets assume its ()=>console.log('hjj')
Обсуждают сегодня