mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Fix style code format
This commit is contained in:
@@ -56,9 +56,20 @@ const getValueUser = (user: TUser | null = null, prop: string): string => {
|
||||
};
|
||||
|
||||
const searchQuery = (phone: string, sort: string, order: string) => {
|
||||
const phoneParams = phone ? 'phone_like=' + phone : '';
|
||||
const sortParams = sort ? '_sort=' + sort : '';
|
||||
const orderParams = order ? '_order=' + order : '';
|
||||
// prettier-ignore
|
||||
const phoneParams = phone
|
||||
? 'phone_like=' + phone
|
||||
: '';
|
||||
|
||||
// prettier-ignore
|
||||
const sortParams = sort
|
||||
? '_sort=' + sort
|
||||
: '';
|
||||
|
||||
// prettier-ignore
|
||||
const orderParams = order
|
||||
? '_order=' + order
|
||||
: '';
|
||||
const finalParam = [phoneParams, sortParams, orderParams];
|
||||
let query = '';
|
||||
let isFirstParam = true;
|
||||
|
||||
Reference in New Issue
Block a user