diff --git a/src/modules/moduleWrapper.tsx b/src/modules/moduleWrapper.tsx index 3ae65a0b2..d6e08506b 100644 --- a/src/modules/moduleWrapper.tsx +++ b/src/modules/moduleWrapper.tsx @@ -13,6 +13,7 @@ import { import { useHover } from '@mantine/hooks'; import { IconAdjustments } from '@tabler/icons'; import { motion } from 'framer-motion'; +import { useState } from 'react'; import { useConfig } from '../tools/state'; import { IModule } from './ModuleTypes'; @@ -148,7 +149,7 @@ export function ModuleWrapper(props: any) { // Remove 'Module' from enabled modules titles const isShown = enabledModules[module.title]?.enabled ?? false; //TODO: fix the hover problem - const { hovered, ref } = useHover(); + const [hovering, setHovering] = useState(false); if (!isShown) { return null; @@ -158,7 +159,6 @@ export function ModuleWrapper(props: any) { ); } @@ -185,6 +192,7 @@ export function ModuleMenu(props: any) { <> {module.options && ( - - - - - - - + + + + Settings