Skip to content

Commit

Permalink
[FE] FIX: 연장권 보유 여부 표시하는 코드 제거, 연장권 사용불가 모달 transition 추가 #1428
Browse files Browse the repository at this point in the history
  • Loading branch information
junyoung2015 committed Nov 26, 2023
1 parent fb25bdc commit 9895158
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions frontend/src/components/CabinetInfoArea/CabinetInfoArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,30 +143,6 @@ const CabinetInfoArea: React.FC<{
/>
</>
)}
{selectedCabinetInfo!.cabinetId === 0 &&
selectedCabinetInfo!.lentType === "PRIVATE" ? (
<>
<ButtonContainer
onClick={() => {
openModal("extendModal");
}}
text={isExtensible ? "연장권 보유중" : "연장권 미보유"}
theme={isExtensible ? "line" : "grayLine"}
iconSrc={
isExtensible
? "/src/assets/images/extensionTicket.svg"
: "/src/assets/images/extensionTicketGray.svg"
}
iconAlt="연장권 아이콘"
disabled={!isExtensible}
/>
<ButtonContainer
onClick={closeCabinet}
text="닫기"
theme="line"
/>
</>
) : null}
{selectedCabinetInfo.status == "IN_SESSION" && (
<CountTimeContainer isMine={false} />
)}
Expand Down Expand Up @@ -382,6 +358,7 @@ const HoverBox = styled.div<{
flex-direction: column;
justify-content: space-around;
align-items: center;
transition: opacity 0.3s ease;
`;

const ButtonHoverWrapper = styled.div`
Expand Down

0 comments on commit 9895158

Please sign in to comment.