) => {
@@ -37,12 +84,6 @@ export default function BasicMenu({ menuItems, defaultValue, className, icon }:
const handleClose = () => {
setAnchorEl(null);
};
- useEffect(() => {
- const handleResize = () => setIsMobile(window.innerWidth <= 600);
- handleResize();
- window.addEventListener('resize', handleResize);
- return () => window.removeEventListener('resize', handleResize);
- }, []);
return (
@@ -55,7 +96,9 @@ export default function BasicMenu({ menuItems, defaultValue, className, icon }:
className={className || button}
>
{selected}
- {icon != false && }
+ {icon === undefined
+ ? expandArrow(open)
+ : icon === true && }