Untitled
unknown
typescript
2 years ago
392 B
4
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...