Just in case, probably not needed

This commit is contained in:
Lim Chee Aun 2024-02-25 13:37:50 +08:00
parent e7d2d088ba
commit f23e4b0dd9

View file

@ -1,6 +1,7 @@
import './nav-menu.css';
import { ControlledMenu, MenuDivider, MenuItem } from '@szhsin/react-menu';
import { memo } from 'preact/compat';
import { useEffect, useRef, useState } from 'preact/hooks';
import { useLongPress } from 'use-long-press';
import { useSnapshot } from 'valtio';
@ -303,4 +304,4 @@ function NavMenu(props) {
);
}
export default NavMenu;
export default memo(NavMenu);