Yuki Takei 1 год назад
Родитель
Сommit
e4ba12244c
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      packages/ui/src/utils/browser-utils.ts
  2. 2 1
      packages/ui/src/utils/use-rect.ts

+ 1 - 1
packages/ui/src/utils/browser-utils.ts

@@ -1,4 +1,4 @@
-import { Breakpoint } from '../interfaces/breakpoints';
+import type { Breakpoint } from '../interfaces/breakpoints';
 
 
 const EVENT_TYPE_CHANGE = 'change';
 const EVENT_TYPE_CHANGE = 'change';
 
 

+ 2 - 1
packages/ui/src/utils/use-rect.ts

@@ -1,7 +1,8 @@
 // based on https://gist.github.com/morajabi/523d7a642d8c0a2f71fcfa0d8b3d2846?permalink_comment_id=4688158#gistcomment-4688158
 // based on https://gist.github.com/morajabi/523d7a642d8c0a2f71fcfa0d8b3d2846?permalink_comment_id=4688158#gistcomment-4688158
 
 
+import type { RefObject } from 'react';
 import {
 import {
-  useState, useEffect, RefObject, useCallback,
+  useState, useEffect, useCallback,
 } from 'react';
 } from 'react';
 
 
 type MutableRefObject<T> = {
 type MutableRefObject<T> = {