mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 04:20:07 +02:00
wrap all instances of mantine hooks used in renderer
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useElementSize } from '@mantine/hooks';
|
||||
import { useElementSize } from '/@/shared/hooks/use-element-size';
|
||||
|
||||
interface UseContainerQueryProps {
|
||||
'2xl'?: number;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user