From 2e6347dfcec03c17f17fa4f2dc2c948f8db35695 Mon Sep 17 00:00:00 2001 From: seonmiki Date: Fri, 22 Nov 2024 19:25:35 +0900 Subject: [PATCH] =?UTF-8?q?[FE]=20REFACTOR:=204=EC=B8=B5=20DISABLED=5FFLOO?= =?UTF-8?q?R=20=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20=EB=B9=A0=EC=A7=84?= =?UTF-8?q?=20=EB=B6=80=EB=B6=84=20=EC=B6=94=EA=B0=80=EC=88=98=EC=A0=95=20?= =?UTF-8?q?#1703?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/Cabinet/pages/AvailablePage.tsx | 1 + frontend/src/Cabinet/pages/MainPage.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/Cabinet/pages/AvailablePage.tsx b/frontend/src/Cabinet/pages/AvailablePage.tsx index 005484fbe..9ec0be173 100644 --- a/frontend/src/Cabinet/pages/AvailablePage.tsx +++ b/frontend/src/Cabinet/pages/AvailablePage.tsx @@ -29,6 +29,7 @@ const toggleList: toggleItem[] = [ { name: "공유", key: AvailableCabinetsType.SHARE }, ]; +/* TODO: DISABLED_FLOOR 을 환경변수로 넣기 */ export const DISABLED_FLOOR = ["4"]; const AvailablePage = () => { diff --git a/frontend/src/Cabinet/pages/MainPage.tsx b/frontend/src/Cabinet/pages/MainPage.tsx index ce6e230c9..0901deb30 100644 --- a/frontend/src/Cabinet/pages/MainPage.tsx +++ b/frontend/src/Cabinet/pages/MainPage.tsx @@ -155,7 +155,7 @@ const MainPage = () => { {currentSectionName !== SectionType.elevator && currentSectionName !== SectionType.stairs && - currentFloor !== 4 && ( + !DISABLED_FLOOR.includes(currentFloor.toString()) && (