mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Update components and constants folder
This commit is contained in:
@@ -8,18 +8,10 @@ const USER_PAGE = {
|
||||
value: 'name',
|
||||
label: 'Sort by name',
|
||||
},
|
||||
{
|
||||
value: 'identifiedCode',
|
||||
label: 'Sort by identified code',
|
||||
},
|
||||
{
|
||||
value: 'phone',
|
||||
label: 'Sort by phone',
|
||||
},
|
||||
{
|
||||
value: 'roomId',
|
||||
label: 'Sort by room',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -45,28 +37,15 @@ const ROOM_PAGE = {
|
||||
label: 'Sort by name',
|
||||
},
|
||||
{
|
||||
value: 'finalPrice',
|
||||
value: 'price',
|
||||
label: 'Sort by price',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const INIT_VALUE_USER_FORM = {
|
||||
name: '',
|
||||
id: 0,
|
||||
identifiedCode: '',
|
||||
phone: '',
|
||||
};
|
||||
|
||||
const INIT_VALUE_ROOM_FORM = {
|
||||
name: '',
|
||||
id: 0,
|
||||
price: 0,
|
||||
discount: 0,
|
||||
};
|
||||
|
||||
const FORM = {
|
||||
EDIT: 'edit',
|
||||
DELETE: 'delete',
|
||||
USER: 'user-form',
|
||||
ROOM: 'room-form',
|
||||
};
|
||||
@@ -83,6 +62,4 @@ export {
|
||||
FORM,
|
||||
REGEX,
|
||||
ORDERBY_OPTIONS,
|
||||
INIT_VALUE_USER_FORM,
|
||||
INIT_VALUE_ROOM_FORM,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user