Untitled
unknown
typescript
3 years ago
392 B
9
Indexable
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/>
}
}Editor is loading...