wrap all instances of mantine hooks used in renderer

This commit is contained in:
jeffvli
2025-11-18 00:29:35 -08:00
parent d349cc3e8d
commit f3bb4187d7
36 changed files with 78 additions and 32 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { useElementSize } from '@mantine/hooks';
import { useElementSize } from '/@/shared/hooks/use-element-size';
interface UseContainerQueryProps {
'2xl'?: number;
+2 -1
View File
@@ -1,6 +1,7 @@
import { useTimeout } from '@mantine/hooks';
import { useEffect, useState } from 'react';
import { useTimeout } from '/@/shared/hooks/use-timeout';
export const useHideScrollbar = (timeout: number) => {
const [hideScrollbar, setHideScrollbar] = useState(false);
const { clear, start } = useTimeout(() => setHideScrollbar(true), timeout);