Skip to content

Commit

Permalink
[FE] REFACTOR: 4층 DISABLED_FLOOR 환경변수 빠진 부분 추가수정 #1703
Browse files Browse the repository at this point in the history
  • Loading branch information
seonmiki committed Nov 22, 2024
1 parent 7103156 commit 2e6347d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/Cabinet/pages/AvailablePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const toggleList: toggleItem[] = [
{ name: "공유", key: AvailableCabinetsType.SHARE },
];

/* TODO: DISABLED_FLOOR 을 환경변수로 넣기 */
export const DISABLED_FLOOR = ["4"];

const AvailablePage = () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Cabinet/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const MainPage = () => {
<CabinetListContainer isAdmin={false} currentFloor={currentFloor} />
{currentSectionName !== SectionType.elevator &&
currentSectionName !== SectionType.stairs &&
currentFloor !== 4 && (
!DISABLED_FLOOR.includes(currentFloor.toString()) && (
<RefreshButtonStyled
className="cabiButton"
title="새로고침"
Expand Down

0 comments on commit 2e6347d

Please sign in to comment.