Update comments

This commit is contained in:
2023-11-01 11:18:05 +07:00
parent e8457d8e2c
commit 12a43f31c0
3 changed files with 6 additions and 1 deletions
@@ -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 (
+1 -1
View File
@@ -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 };
} }
} }