Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const customBindPopover = (popupState: any) => {
const popoverProps = bindPopover(popupState);
// @ts-ignore
delete popoverProps.disableAutoFocus;
// @ts-ignore
delete popoverProps.disableEnforceFocus;
// @ts-ignore
delete popoverProps.disableRestoreFocus;
return {
...popoverProps,
};
};
{(popupState) => (
<>
{pluralize("route", httpRoutes.length)}
)}
{popupState => (
<div>
<button color="primary">
Open Popover
</button>
The content of the Popover.
</div>
)}
{(popupState) => (
<>
<button size="small" color="primary">
Type of storage
</button>
({
name: "Type: " + x.name,
content: (
<button href="{x.docLink}">
Details</button>