Skip to content

Commit

Permalink
[Fix]-누구 수정: 150자 넘어갈 경우 버튼 비활성화
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaem03 committed Nov 15, 2024
1 parent 0b64ae7 commit 5f50798
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/common/introField/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const Textfield = styled.div`
height: 70px;
border: none;
outline: none;
word-break: break-word;
${({ theme }) => theme.fonts.pretendardB1};
color: ${({ theme }) => theme.colors.blue300};
&::placeholder {
Expand Down
4 changes: 3 additions & 1 deletion src/pages/nuguIntro/WriteIntro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export const WriteIntro = () => {
</S.TitleWrapper>
</S.InfoWrapper>
<Button
disabled={selectedCount !== 3 || content.length === 0}
disabled={
selectedCount !== 3 || content.length === 0 || content.length > 150
}
onClick={handleSubmit}
>
저장하기
Expand Down

0 comments on commit 5f50798

Please sign in to comment.