Add new enums to match Flutter project structure
All checks were successful
Build frontend / build (push) Successful in 39s
All checks were successful
Build frontend / build (push) Successful in 39s
- Add RentPropertyCondition (WithFurniture/WithoutFurniture) - Add RentPropertyType (Furnished/Unfurnished/SemiFurnished) - Add RentType (Monthly/Daily) - Add PropertyService (13 services for detailsJSON) - Add PropertyTerm (NoSmoking/NoAnimals/NoParties) - Add Currency (SYP/USD) - Update enums barrel file
This commit is contained in:
21
app/enums/PropertyTerm.js
Normal file
21
app/enums/PropertyTerm.js
Normal file
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* PropertyTerm Enum
|
||||
* Usage terms/conditions for the property
|
||||
* Used in detailsJSON.terms array
|
||||
*/
|
||||
const PropertyTerm = Object.freeze({
|
||||
NO_SMOKING: 'NoSmoking',
|
||||
NO_ANIMALS: 'NoAnimals',
|
||||
NO_PARTIES: 'NoParties',
|
||||
});
|
||||
|
||||
const PropertyTermLabels = Object.freeze({
|
||||
[PropertyTerm.NO_SMOKING]: 'ممنوع التدخين',
|
||||
[PropertyTerm.NO_ANIMALS]: 'ممنوع الحيوانات',
|
||||
[PropertyTerm.NO_PARTIES]: 'ممنوع الحفلات',
|
||||
});
|
||||
|
||||
// All terms as array
|
||||
const PropertyTermsList = Object.freeze(Object.values(PropertyTerm));
|
||||
|
||||
export { PropertyTerm, PropertyTermLabels, PropertyTermsList };
|
||||
Reference in New Issue
Block a user