From 1015c206bea167d97cfd5a7625bbbe10d7093de0 Mon Sep 17 00:00:00 2001 From: sj0724 Date: Tue, 28 May 2024 15:01:31 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8F=B4=EB=8D=94=20=EC=B6=94=EA=B0=80,?= =?UTF-8?q?=20=EB=A7=81=ED=81=AC=20=EA=B2=80=EC=83=89=20=EA=B8=80=EC=9E=90?= =?UTF-8?q?=EC=88=98=20=EC=A0=9C=ED=95=9C=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Modal/AddFolderModal/AddFolderModal.tsx | 1 + components/SearchBar/SearchBar.tsx | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/components/Modal/AddFolderModal/AddFolderModal.tsx b/components/Modal/AddFolderModal/AddFolderModal.tsx index 721d8fe75..f92ad9d82 100644 --- a/components/Modal/AddFolderModal/AddFolderModal.tsx +++ b/components/Modal/AddFolderModal/AddFolderModal.tsx @@ -36,6 +36,7 @@ function AddFolderModal({ control={control} rules={{ required: '내용을 입력해주세요!', + maxLength: { value: 10, message: '10자 이하로 입력해주세요!' }, }} render={({ field, fieldState: { error } }) => ( ) => { e.preventDefault(); + if (text.length >= 30) { + alert('30자 이하로 검색가능합니다!'); + return; + } setSearchKeyWord(text); };