Update TypeScript ESLint dependencies
This commit is contained in:
parent
e60773cdf3
commit
465b387a13
5 changed files with 623 additions and 198 deletions
|
@ -28,7 +28,7 @@ export type PropsType<T> = {
|
|||
readonly value: T;
|
||||
};
|
||||
|
||||
export const ContextMenu = <T extends unknown>({
|
||||
export function ContextMenu<T>({
|
||||
buttonClassName,
|
||||
i18n,
|
||||
menuOptions,
|
||||
|
@ -36,7 +36,7 @@ export const ContextMenu = <T extends unknown>({
|
|||
theme,
|
||||
title,
|
||||
value,
|
||||
}: PropsType<T>): JSX.Element => {
|
||||
}: PropsType<T>): JSX.Element {
|
||||
const [menuShowing, setMenuShowing] = useState<boolean>(false);
|
||||
const [focusedIndex, setFocusedIndex] = useState<number | undefined>(
|
||||
undefined
|
||||
|
@ -183,4 +183,4 @@ export const ContextMenu = <T extends unknown>({
|
|||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue