villas data refactory

This commit is contained in:
2024-03-07 18:25:17 +05:00
parent 20f6192436
commit 2e17f3bdb3
3 changed files with 21 additions and 18 deletions
-1
View File
@@ -12,7 +12,6 @@ const ResizeButton = ({
className,
isFullscreen,
}: ResizeButtonProps) => {
console.log("isFullScreen", isFullscreen);
return (
<button
className={`bg-white border border-[#C7BDBA] rounded-full flex justify-center items-center hover:bg-secondary transition-all duration-200 ${
+20 -17
View File
@@ -35,8 +35,7 @@ const villaA1M: Villa = {
groundFloorUnits: [
{ id: 1, title: 'Entrance', value: '3.25x3.10' },
{ id: 2, title: 'Living Room', value: '4.10x5.10' },
{ id: 3, title: 'Dinning Room', value: '5.00x5.00' },
{ id: 4, title: 'Terrace 1', value: '5.70x0.90' },
{ id: 3, title: 'Dining Room', value: '5.00x5.00' },
{ id: 5, title: 'Store 1', value: '2.90x1.35' },
{ id: 6, title: 'Men`s Majilas', value: '5.00x7.00' },
{ id: 7, title: 'Bathroom 1', value: '1.70x2.00' },
@@ -44,13 +43,14 @@ const villaA1M: Villa = {
{ id: 9, title: 'Guest Bedroom', value: '4.10x4.60' },
{ id: 10, title: 'Bathroom 2', value: '2.70x2.00' },
{ id: 11, title: 'Kitchen', value: '5.00x4.00' },
{ id: 12, title: 'Terrace 2', value: '5.30x1.00' },
{ id: 13, title: 'Store 2', value: '2.20x1.35' },
{ id: 14, title: 'Bathroom 3', value: '1.50x2.50' },
{ id: 13, title: 'Store 2', value: '2.20x1.35' },
{ id: 15, title: 'Laundry Room', value: '2.20x1.50' },
{ id: 16, title: 'Domestic Worker Room 1', value: '3.50x3.00' },
{ id: 17, title: 'Domestic Worker Bathroom 1', value: '1.50x2.00' },
{ id: 18, title: 'Service Room', value: '1.10x1.90' }
// { id: 12, title: 'Terrace 2', value: '5.30x1.00' },
// { id: 4, title: 'Terrace 1', value: '5.70x0.90' },
],
parkingUnits: [
@@ -68,12 +68,13 @@ const villaA1M: Villa = {
{ id: 6, title: 'Bedroom 1', value: '5.00x4.00' },
{ id: 7, title: 'Dressing Room 2', value: '3.10x2.70' },
{ id: 8, title: 'Bathroom 2', value: '1.80x2.70' },
{ id: 9, title: 'Terrace 2', value: '5.00x2.30' },
{ id: 10, title: 'Bedroom 2', value: '5.00x4.00' },
{ id: 11, title: 'Dressing Room 3', value: '2.20x1.80' },
{ id: 12, title: 'Bedroom 3', value: '4.10x4.80' },
{ id: 13, title: 'Bathroom 3', value: '2.70x1.80' },
{ id: 14, title: 'Store 1', value: '1.80x1.35' }
{ id: 12, title: 'Bathroom 3', value: '1.80x2.70' },
{ id: 13, title: 'Terrace 2', value: '5.00x2.30' },
{ id: 14, title: 'Bedroom 3', value: '4.10x4.80' },
{ id: 15, title: 'Bathroom 4', value: '2.65x1.80' },
{ id: 16, title: 'Store 1', value: '1.80x1.35' }
],
};
@@ -113,6 +114,7 @@ const villaA1T: Villa = {
{ id: 1, title: 'Entrance', value: '3.25x3.10' },
{ id: 2, title: 'Living Room', value: '4.10x5.10' },
{ id: 3, title: 'Dining Room', value: '4.10x5.10' },
{ id: 17, title: 'Terrace 1', value: '4.10x5.10' },
{ id: 4, title: 'Store 1', value: '2.90x1.35' },
{ id: 5, title: 'Men`s Majilas', value: '5.00x7.00' },
{ id: 6, title: 'Bathroom 1', value: '1.70x2.00' },
@@ -120,12 +122,13 @@ const villaA1T: Villa = {
{ id: 8, title: 'Guest Bedroom', value: '4.10x4.60' },
{ id: 9, title: 'Bathroom 2', value: '2.70x2.00' },
{ id: 10, title: 'Kitchen', value: '5.00x4.00' },
{ id: 11, title: 'Bathroom 3', value: '1.50x2.50' },
{ id: 18, title: 'Terrace 2', value: '5.00x4.00' },
{ id: 12, title: 'Store 2', value: '2.20x1.30' },
{ id: 11, title: 'Bathroom 3', value: '1.50x2.50' },
{ id: 13, title: 'Laundry Room', value: '2.20x1.50' },
{ id: 14, title: 'Domestic Worker Room 1', value: '3.50x3.00' },
{ id: 15, title: 'Domestic Worker Bathroom 1', value: '1.50x2.00' },
{ id: 16, title: 'Service Room', value: '1.10x1.90' }
{ id: 15, title: 'Domestic Worker Bathroom 1', value: '3.00x1.50' },
{ id: 16, title: 'Service Room', value: '1.10x1.90' },
],
parkingUnits: [
{ id: 1, title: 'Domestic Worker Room 2', value: '3.00x3.00' },
@@ -142,16 +145,16 @@ const villaA1T: Villa = {
{ id: 6, title: 'Bedroom 1', value: '2.70x1.80' },
{ id: 7, title: 'Dressing Room 2', value: '2.70x1.80' },
{ id: 8, title: 'Bathroom 2', value: '2.70x1.80' },
{ id: 12, title: 'Terrace 2', value: '5.50x1.50' },
{ id: 9, title: 'Bedroom 2', value: '5.00x4.00' },
{ id: 10, title: 'Dressing Room 3', value: '3.00x2.45' },
{ id: 11, title: 'Bathroom 3', value: '1.80x2.70' },
{ id: 12, title: 'Terrace 2', value: '5.50x1.50' },
{ id: 13, title: 'Bedroom 3', value: '4.10x4.20' },
{ id: 14, title: 'Bathroom 4', value: '2.65x1.80' },
{ id: 15, title: 'Store 1', value: '1.80x1.35' }
],
};
const villaA2M: Villa = {
type: "a2m",
plotArea: "1080",
@@ -925,10 +928,10 @@ const VILLAS = [
villaB1T,
villaB2M,
villaB2T,
// villaC1M,
// villaC1T,
// villaC2M,
// villaC2T,
villaC1M,
villaC1T,
villaC2M,
villaC2T,
];
export { villaA1M, VILLAS };
@@ -32,6 +32,7 @@ const DesktopApartmentPage = () => {
setLoader(<LoaderModal isSimleLoader />);
} else {
setLoader(null);
setVillaLoadStatus(0);
}
};