This commit is contained in:
Manav Rathi 2024-05-25 09:37:07 +05:30
parent 823f739c32
commit 11a354c560
No known key found for this signature in database

View file

@ -1,5 +1,5 @@
import { IconButton, styled, type PaperProps } from "@mui/material";
import Menu from "@mui/material/Menu";
import Menu, { type MenuProps } from "@mui/material/Menu";
import React, { useState } from "react";
import { OverflowMenuContext } from "./context";
@ -31,7 +31,9 @@ export default function OverflowMenu({
triggerButtonProps,
menuPaperProps,
}: Iprops) {
const [sortByEl, setSortByEl] = useState(null);
const [sortByEl, setSortByEl] = useState<MenuProps["anchorEl"] | null>(
null,
);
const handleClose = () => setSortByEl(null);
return (
<OverflowMenuContext.Provider value={{ close: handleClose }}>