Compare commits
2 Commits
819d5ea802
...
ddf5367f92
| Author | SHA1 | Date | |
|---|---|---|---|
| ddf5367f92 | |||
| 417b6cb393 |
@ -297,6 +297,7 @@ export default function AddPropertyForm({ onClose, onSuccess }) {
|
||||
<option value="house">بيت</option>
|
||||
<option value="villa">فيلا</option>
|
||||
<option value="studio">استوديو</option>
|
||||
<option value="office">مكتب</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
@ -1,23 +1,25 @@
|
||||
/**
|
||||
* BuildingType Enum
|
||||
* Backend values are numeric (0-8)
|
||||
* Backend values are numeric
|
||||
* Used in: PropertyInformation.buildingType
|
||||
*/
|
||||
const BuildingType = Object.freeze({
|
||||
APARTMENT: 0,
|
||||
VILLA: 1,
|
||||
SWEET: 2,
|
||||
ROOM: 3,
|
||||
STUDIO: 4,
|
||||
OFFICE: 5,
|
||||
FARMS: 6,
|
||||
SHOP: 7,
|
||||
WAREHOUSE: 8,
|
||||
HOUSE: 2,
|
||||
SWEET: 3,
|
||||
ROOM: 4,
|
||||
STUDIO: 5,
|
||||
OFFICE: 6,
|
||||
FARMS: 7,
|
||||
SHOP: 8,
|
||||
WAREHOUSE: 9,
|
||||
});
|
||||
|
||||
const BuildingTypeLabels = Object.freeze({
|
||||
[BuildingType.APARTMENT]: 'شقة',
|
||||
[BuildingType.VILLA]: 'فيلا',
|
||||
[BuildingType.HOUSE]: 'بيت',
|
||||
[BuildingType.SWEET]: 'سويت',
|
||||
[BuildingType.ROOM]: 'غرفة',
|
||||
[BuildingType.STUDIO]: 'استوديو',
|
||||
@ -30,6 +32,7 @@ const BuildingTypeLabels = Object.freeze({
|
||||
const BuildingTypeKeys = Object.freeze({
|
||||
[BuildingType.APARTMENT]: 'apartment',
|
||||
[BuildingType.VILLA]: 'villa',
|
||||
[BuildingType.HOUSE]: 'house',
|
||||
[BuildingType.SWEET]: 'sweet',
|
||||
[BuildingType.ROOM]: 'room',
|
||||
[BuildingType.STUDIO]: 'studio',
|
||||
@ -42,7 +45,9 @@ const BuildingTypeKeys = Object.freeze({
|
||||
const BuildingTypeByKey = Object.freeze({
|
||||
apartment: BuildingType.APARTMENT,
|
||||
villa: BuildingType.VILLA,
|
||||
house: BuildingType.HOUSE,
|
||||
sweet: BuildingType.SWEET,
|
||||
suite: BuildingType.SWEET,
|
||||
room: BuildingType.ROOM,
|
||||
studio: BuildingType.STUDIO,
|
||||
office: BuildingType.OFFICE,
|
||||
|
||||
Reference in New Issue
Block a user