From 07d4392e594a1706a9693313ad1f5fe46453e2f2 Mon Sep 17 00:00:00 2001 From: zojgame Date: Wed, 10 Jul 2024 18:35:51 +0500 Subject: [PATCH] var fix upd --- .../SequenceWing/MobileFloorDescription.tsx | 138 ------------------ server/src/routes/zohoAccessToken.ts | 2 +- 2 files changed, 1 insertion(+), 139 deletions(-) delete mode 100644 client/src/components/complexWingPage/SequenceWing/MobileFloorDescription.tsx diff --git a/client/src/components/complexWingPage/SequenceWing/MobileFloorDescription.tsx b/client/src/components/complexWingPage/SequenceWing/MobileFloorDescription.tsx deleted file mode 100644 index 0f51339..0000000 --- a/client/src/components/complexWingPage/SequenceWing/MobileFloorDescription.tsx +++ /dev/null @@ -1,138 +0,0 @@ -import { IAparmentRes } from "../../../types/apartmentsRes"; -import { IDesctiptionFloor } from "../../../types/descriptionFloor"; -import Button from "../../Button"; -import CrossIcon from "../../icons/CrossIcon"; -import RightArrowSliderIcon from "../../icons/RightArrowSliderIcon"; - -interface MobileFloorDescriptionProps { - descriptionFloor: IDesctiptionFloor | null; - floorApartments: IAparmentRes[]; - isLeft: boolean; - onClick: (event: React.MouseEvent) => void; -} - -const MobileFloorDescription = ({ - descriptionFloor, - floorApartments, - isLeft, - onClick, -}: MobileFloorDescriptionProps) => { - return ( - <> -
-
-
-
-

- {descriptionFloor?.floor} Floor -

-
-

- {descriptionFloor?.wing} -

-
-

- {floorApartments.length} units -

-
-
-
-
-
-
-
-

- { - floorApartments.filter( - (apart) => apart.Unit_Type === "Studio Flex" - ).length - } -

-
-

- Studio Flex -

-
-

- Unavailable -

-
-
-
-
-

- { - floorApartments.filter( - (apart) => apart.Unit_Type === "Studio Squared" - ).length - } -

-
-

Studio

-
-

- Unavailable -

-
-
-
-
-

- { - floorApartments.filter( - (apart) => apart.Unit_Type === "1 BR Squared" - ).length - } -

-
-

1 Bedroom

-
-

- Unavailable -

-
-
-
-
-

- { - floorApartments.filter( - (apart) => apart.Unit_Type === "2 BR Squared" - ).length - } -

-
-

- 2 Bedroom, Type A -

-
-

- Unavailable -

-
-
-
-
-
- - ); -}; - -export default MobileFloorDescription; diff --git a/server/src/routes/zohoAccessToken.ts b/server/src/routes/zohoAccessToken.ts index eba9835..e29c156 100644 --- a/server/src/routes/zohoAccessToken.ts +++ b/server/src/routes/zohoAccessToken.ts @@ -2,7 +2,7 @@ import { Request, Response, NextFunction } from "express"; import { updateAccessTokenApi } from "../consts.js"; import { logger } from "../utils/logger.js"; -var updateAccessToken = async function (req: Request, res: Response) { +const updateAccessToken = async function (req: Request, res: Response) { try { const response = await fetch(updateAccessTokenApi, { method: "post",