Untitled

mail@pastecode.io avatar
unknown
typescript
a year ago
392 B
1
Indexable
Never
 
const PoliciesFilterBar = ()=>{

 const handleClose = (provider: any) => {
    setAnchorEl(null);
    if (typeof provider === 'string') {
      history.push(`/create_policy/` + encodeURIComponent(provider.toLowerCase()));
    }
  };

  const decoratorHandleClose = hasPermissions(['sca.mgmt.gcp.create'], handleClose);

    render(){
       <button onClick={onClose}>close</button/>
   }

}