Update structure code

This commit is contained in:
2023-11-05 20:42:03 +07:00
parent 0b9450a0ce
commit 61ec8e9f68
22 changed files with 149 additions and 174 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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