mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
refactor(ContextMenu): wrap inside memo
This commit is contained in:
parent
d8be6085b2
commit
43a7e8d856
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import React, { RefObject, useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import React, { memo, RefObject, useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import styles from './ContextMenu.less';
|
||||
|
||||
|
|
@ -86,4 +86,4 @@ const ContextMenu = ({ children, on, autoClose }: Props) => {
|
|||
), document.body);
|
||||
};
|
||||
|
||||
export default ContextMenu;
|
||||
export default memo(ContextMenu);
|
||||
|
|
|
|||
Loading…
Reference in a new issue