Compare commits

...

2 Commits

Author SHA1 Message Date
ddf5367f92 Merge branch 'main' of http://45.93.137.91:3000/Rahaf/SweetHome
All checks were successful
Build frontend / build (push) Successful in 1m17s
Co-authored-by: Copilot <copilot@github.com>
2026-05-28 18:30:39 +03:00
417b6cb393 Edit AddProperty 2026-05-28 17:42:51 +03:00
2 changed files with 14 additions and 8 deletions

View File

@ -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>

View File

@ -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,