mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-23 04:19:48 +00:00
Update comments
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
import { useSearchParams } from 'react-router-dom';
|
import { useSearchParams } from 'react-router-dom';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Select from './Select';
|
import Select from './Select';
|
||||||
|
|
||||||
interface ISortByProps {
|
interface ISortByProps {
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
// Constants
|
// Constants
|
||||||
import { BASE_URL } from '../constants/path';
|
import { BASE_URL } from '../constants/path';
|
||||||
|
|
||||||
|
// Types
|
||||||
import { TResponse } from '../globals/types';
|
import { TResponse } from '../globals/types';
|
||||||
|
|
||||||
type TMethodRequest = 'GET' | 'POST' | 'PUT' | 'DELETE';
|
type TMethodRequest = 'GET' | 'POST' | 'PUT' | 'DELETE';
|
||||||
|
|
||||||
export const sendRequest = async (
|
export const sendRequest = async (
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const getValueFromObj = <T>(obj: T | null = null): TKeyString => {
|
|||||||
? tempValue
|
? tempValue
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
result = { ...result, [`${key}Value`]: value as string };
|
result = { ...result, [`${key}Value`]: value };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user