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