Untitled
Anonymous
typescript
04/20/2023 7:27 AM
524 B
17
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...