Skip to content

Commit

Permalink
feat: 작성완료 모달 수정중에는 숨기기
Browse files Browse the repository at this point in the history
  • Loading branch information
hyo-4 committed May 21, 2024
1 parent 101c1cc commit 858e49e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/pages/ApplyEditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,15 @@ const ApplyEditPage: React.FC = () => {
</TopTitleBar>
<EditContainer>
<TopWrapper>
<ToggleWrapper>
작성완료
<Toggle
isActive={completed === "작성완료"}
onClick={() => (!editing ? handleCompeletedButton() : null)}
/>
</ToggleWrapper>
{!editing && (
<ToggleWrapper>
작성완료
<Toggle
isActive={completed === "작성완료"}
onClick={() => (!editing ? handleCompeletedButton() : null)}
/>
</ToggleWrapper>
)}
{editing ? (
<SaveButton
isNotNull={isAllFilled}
Expand Down Expand Up @@ -479,7 +481,7 @@ const SaveButton = styled.button<{ isNotNull: boolean }>`
display: inline-flex;
padding: 0.625rem 4rem;
justify-content: center;
align-items: center;
align-items: end;
color:#FFF;
gap: 0.625rem;
font-size: 1rem;
Expand Down

0 comments on commit 858e49e

Please sign in to comment.