Merge branch 'main' of http://45.93.137.91:3000/Rahaf/SweetHome
All checks were successful
Build frontend / build (push) Successful in 1m16s
All checks were successful
Build frontend / build (push) Successful in 1m16s
This commit is contained in:
@ -297,6 +297,7 @@ export default function AddPropertyForm({ onClose, onSuccess }) {
|
|||||||
<option value="house">بيت</option>
|
<option value="house">بيت</option>
|
||||||
<option value="villa">فيلا</option>
|
<option value="villa">فيلا</option>
|
||||||
<option value="studio">استوديو</option>
|
<option value="studio">استوديو</option>
|
||||||
|
<option value="office">مكتب</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -1,23 +1,25 @@
|
|||||||
/**
|
/**
|
||||||
* BuildingType Enum
|
* BuildingType Enum
|
||||||
* Backend values are numeric (0-8)
|
* Backend values are numeric
|
||||||
* Used in: PropertyInformation.buildingType
|
* Used in: PropertyInformation.buildingType
|
||||||
*/
|
*/
|
||||||
const BuildingType = Object.freeze({
|
const BuildingType = Object.freeze({
|
||||||
APARTMENT: 0,
|
APARTMENT: 0,
|
||||||
VILLA: 1,
|
VILLA: 1,
|
||||||
SWEET: 2,
|
HOUSE: 2,
|
||||||
ROOM: 3,
|
SWEET: 3,
|
||||||
STUDIO: 4,
|
ROOM: 4,
|
||||||
OFFICE: 5,
|
STUDIO: 5,
|
||||||
FARMS: 6,
|
OFFICE: 6,
|
||||||
SHOP: 7,
|
FARMS: 7,
|
||||||
WAREHOUSE: 8,
|
SHOP: 8,
|
||||||
|
WAREHOUSE: 9,
|
||||||
});
|
});
|
||||||
|
|
||||||
const BuildingTypeLabels = Object.freeze({
|
const BuildingTypeLabels = Object.freeze({
|
||||||
[BuildingType.APARTMENT]: 'شقة',
|
[BuildingType.APARTMENT]: 'شقة',
|
||||||
[BuildingType.VILLA]: 'فيلا',
|
[BuildingType.VILLA]: 'فيلا',
|
||||||
|
[BuildingType.HOUSE]: 'بيت',
|
||||||
[BuildingType.SWEET]: 'سويت',
|
[BuildingType.SWEET]: 'سويت',
|
||||||
[BuildingType.ROOM]: 'غرفة',
|
[BuildingType.ROOM]: 'غرفة',
|
||||||
[BuildingType.STUDIO]: 'استوديو',
|
[BuildingType.STUDIO]: 'استوديو',
|
||||||
@ -30,6 +32,7 @@ const BuildingTypeLabels = Object.freeze({
|
|||||||
const BuildingTypeKeys = Object.freeze({
|
const BuildingTypeKeys = Object.freeze({
|
||||||
[BuildingType.APARTMENT]: 'apartment',
|
[BuildingType.APARTMENT]: 'apartment',
|
||||||
[BuildingType.VILLA]: 'villa',
|
[BuildingType.VILLA]: 'villa',
|
||||||
|
[BuildingType.HOUSE]: 'house',
|
||||||
[BuildingType.SWEET]: 'sweet',
|
[BuildingType.SWEET]: 'sweet',
|
||||||
[BuildingType.ROOM]: 'room',
|
[BuildingType.ROOM]: 'room',
|
||||||
[BuildingType.STUDIO]: 'studio',
|
[BuildingType.STUDIO]: 'studio',
|
||||||
@ -42,7 +45,9 @@ const BuildingTypeKeys = Object.freeze({
|
|||||||
const BuildingTypeByKey = Object.freeze({
|
const BuildingTypeByKey = Object.freeze({
|
||||||
apartment: BuildingType.APARTMENT,
|
apartment: BuildingType.APARTMENT,
|
||||||
villa: BuildingType.VILLA,
|
villa: BuildingType.VILLA,
|
||||||
|
house: BuildingType.HOUSE,
|
||||||
sweet: BuildingType.SWEET,
|
sweet: BuildingType.SWEET,
|
||||||
|
suite: BuildingType.SWEET,
|
||||||
room: BuildingType.ROOM,
|
room: BuildingType.ROOM,
|
||||||
studio: BuildingType.STUDIO,
|
studio: BuildingType.STUDIO,
|
||||||
office: BuildingType.OFFICE,
|
office: BuildingType.OFFICE,
|
||||||
|
|||||||
Reference in New Issue
Block a user