mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 21:10:12 +02:00
wrap all instances of mantine hooks used in renderer
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import type { ButtonVariant, ButtonProps as MantineButtonProps } from '@mantine/core';
|
||||
|
||||
import { ElementProps, Button as MantineButton } from '@mantine/core';
|
||||
import { useTimeout } from '@mantine/hooks';
|
||||
import clsx from 'clsx';
|
||||
import { forwardRef, useCallback, useRef, useState } from 'react';
|
||||
|
||||
@@ -9,6 +8,7 @@ import styles from './button.module.css';
|
||||
|
||||
import { Spinner } from '/@/shared/components/spinner/spinner';
|
||||
import { Tooltip, TooltipProps } from '/@/shared/components/tooltip/tooltip';
|
||||
import { useTimeout } from '/@/shared/hooks/use-timeout';
|
||||
import { createPolymorphicComponent } from '/@/shared/utils/create-polymorphic-component';
|
||||
|
||||
export interface ButtonProps
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
||||
import { useMergedRef } from '@mantine/hooks';
|
||||
import clsx from 'clsx';
|
||||
import { useOverlayScrollbars } from 'overlayscrollbars-react';
|
||||
import { forwardRef, Ref, useEffect, useRef, useState } from 'react';
|
||||
@@ -7,6 +6,7 @@ import { forwardRef, Ref, useEffect, useRef, useState } from 'react';
|
||||
import styles from './scroll-area.module.css';
|
||||
import './scroll-area.css';
|
||||
|
||||
import { useMergedRef } from '/@/shared/hooks/use-merged-ref';
|
||||
import { DragData, DragTarget } from '/@/shared/types/drag-and-drop';
|
||||
|
||||
interface ScrollAreaProps extends React.ComponentPropsWithoutRef<'div'> {
|
||||
|
||||
Reference in New Issue
Block a user