Skip to content

Commit

Permalink
[FE] FIX: Dummy 발표상태 disabled 처리 #1691
Browse files Browse the repository at this point in the history
  • Loading branch information
seonmiki committed Dec 16, 2024
1 parent b07ecff commit 47c45fe
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/src/Cabinet/components/Common/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const Dropdown = ({
return (
<DropdownContainerStyled>
<DropdownSelectionBoxStyled
isDisabled={!!options[selectedIdx]?.isDisabled}
onClick={() => {
if (options[selectedIdx].isDisabled) return;
setIsOpen(!isOpen);
Expand Down Expand Up @@ -103,7 +104,7 @@ const DropdownContainerStyled = styled.div`
cursor: pointer;
`;

const DropdownSelectionBoxStyled = styled.div`
const DropdownSelectionBoxStyled = styled.div <{ isDisabled: boolean }>`
position: relative;
display: flex;
align-items: center;
Expand All @@ -114,12 +115,15 @@ const DropdownSelectionBoxStyled = styled.div`
text-align: start;
padding-left: 20px;
font-size: 1.125rem;
color: "var(--sys-main-color)";
color: ${({ isDisabled }) =>
(isDisabled ? "var(--gray-line-btn-color)" : "var(--sys-main-color)")};
cursor: ${({ isDisabled }) =>
(isDisabled ? "not-allowed" : "pointer")};
`;

const DropdownItemContainerStyled = styled.div<{ isVisible: boolean }>`
width: 100%;
height: 400%;
height: 300%;
display: flex;
flex-direction: column;
position: absolute;
Expand Down

0 comments on commit 47c45fe

Please sign in to comment.