mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-23 04:19:48 +00:00
Update structure code
This commit is contained in:
@@ -8,7 +8,7 @@ import { DEFAULT_ORDER_BY, DEFAULT_SORT_BY } from '../constants/config';
|
||||
import { searchQuery } from '../helpers/utils';
|
||||
|
||||
// Types
|
||||
import { Nullable } from '../globals/types';
|
||||
import { Nullable } from '../types/common';
|
||||
|
||||
/**
|
||||
* The function use to fetch data on server API.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ForwardedRef, useEffect, useRef } from 'react';
|
||||
|
||||
// Types
|
||||
import { Nullable } from '../globals/types';
|
||||
import { Nullable } from '../types/common';
|
||||
|
||||
const useForwardRef = <T>(
|
||||
ref: ForwardedRef<T>,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { MutableRefObject, useEffect, useRef } from 'react';
|
||||
|
||||
// Types
|
||||
import { Nullable } from '../globals/types';
|
||||
import { Nullable } from '../types/common';
|
||||
|
||||
/**
|
||||
* Custom hook to call handler when click outside element
|
||||
|
||||
Reference in New Issue
Block a user