Files
react-training/hotel-management/src/constants/variables.ts
T

78 lines
1.2 KiB
TypeScript

// prettier-ignore
const USER_PAGE = {
SORTBY_OPTIONS: [
{
value: 'id',
label: 'Sort by id',
},
{
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',
},
],
ORDERBY_OPTIONS: [
{
value: 'asc',
label: 'Ascending',
},
{
value: 'desc',
label: 'Descending',
},
],
};
// prettier-ignore
const ROOM_PAGE = {
ORDERBY_OPTIONS: [
{
value: 'asc',
label: 'Ascending',
},
{
value: 'desc',
label: 'Descending',
},
],
SORTBY_OPTIONS: [
{
value: 'id',
label: 'Sort by id',
},
{
value: 'name',
label: 'Sort by name',
},
{
value: 'amount',
label: 'Sort by amount',
},
{
value: 'price',
label: 'Sort by price',
},
{
value: 'discount',
label: 'Sort by discount',
},
{
value: 'status',
label: 'Sort by status',
},
],
}
export { USER_PAGE, ROOM_PAGE };