From 30594484fba41a7b1742b1883d00c97ff0750ca6 Mon Sep 17 00:00:00 2001 From: zojgame Date: Thu, 4 Jul 2024 19:48:42 +0500 Subject: [PATCH] option starts --- .../modals/mobile/WingFloorModal.tsx | 41 ++++++++++++++++++- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/client/src/components/modals/mobile/WingFloorModal.tsx b/client/src/components/modals/mobile/WingFloorModal.tsx index 76ff86c..44a4df6 100644 --- a/client/src/components/modals/mobile/WingFloorModal.tsx +++ b/client/src/components/modals/mobile/WingFloorModal.tsx @@ -14,6 +14,7 @@ import WestWingTopLevelsHighlighting from "../../complexWingPage/FloorSidebar/We import WestWingTopLevelsLayout from "../../complexWingPage/FloorSidebar/WestWingTopLevelsLayout"; import { filterCurrentApartment } from "../../../calc/filterCurrentApartment"; import MobileApartmentDescription from "../../complexWingPage/MobileApartmentDescription"; +import ChevronDownIcon from "../../icons/ChevronDownIcon"; const getDefaultApartments = (currentFloor: IDesctiptionFloor | null) => { if (!currentFloor) return []; @@ -182,9 +183,10 @@ const WingFloorModal = ({
-

+ + {/*

{currentFloor?.floor} floor -

+

*/}

{wing}

@@ -272,5 +274,40 @@ const WingFloorModal = ({ ); }; +interface IOption { + id: string; + value: string; + isSelected: boolean; +} + +interface TransparentSelectorProps { + options: IOption; + setOptions: React.Dispatch>; +} + +const TransparentSelector = ({ + options, + setOptions, +}: TransparentSelectorProps) => { + const [isOpened, setIsOpened] = useState(false); + const handleOnClick = () => { + setIsOpened((prev) => !prev); + }; + + return ( + <> +
+

11 floor

+
+ +
+
+ {isOpened &&
} + + ); +}; export default WingFloorModal;