tsc
This commit is contained in:
parent
823f739c32
commit
11a354c560
1 changed files with 4 additions and 2 deletions
|
@ -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 }}>
|
||||
|
|
Loading…
Reference in a new issue