From 2c681db96ded9cee778348949a7558c343f9119a Mon Sep 17 00:00:00 2001 From: zojgame Date: Mon, 25 Mar 2024 17:23:20 +0500 Subject: [PATCH] fixed layout slider --- src/components/UnitList.tsx | 40 ++++++++++--------- .../desktop/Appartment/LayoutModal.tsx | 10 ++--- .../mobile/Appartment/LayoutSlider.tsx | 2 +- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/components/UnitList.tsx b/src/components/UnitList.tsx index fb94657..db1ad57 100644 --- a/src/components/UnitList.tsx +++ b/src/components/UnitList.tsx @@ -7,28 +7,30 @@ type UnitListProps = { const UnitList = ({ units, startIndex = 0 }: UnitListProps) => { return ( -
-
-
-
-
Unit
-
Area (m)
-
-
- {units.map((unit, index) => ( -
-
{startIndex + index + 1}
+
+
+
+
-
{unit.title}
-
{unit.value}
+
Unit
+
Area (m)
- ))} + {units.map((unit, index) => ( +
+
{startIndex + index + 1}
+
+
{unit.title}
+
{unit.value}
+
+
+ ))} +
); }; diff --git a/src/components/desktop/Appartment/LayoutModal.tsx b/src/components/desktop/Appartment/LayoutModal.tsx index 947bd39..d503e74 100644 --- a/src/components/desktop/Appartment/LayoutModal.tsx +++ b/src/components/desktop/Appartment/LayoutModal.tsx @@ -40,12 +40,10 @@ const LayoutModal = () => { <>
-
- {currentUnits && ( - - )} -
-
+ {currentUnits && ( + + )} +
{ }); return ( -
+