이승윤

feat: Input 빈 쿼리 입력시 예외처리 기능

...@@ -78,6 +78,10 @@ const MyInput = ({ ...@@ -78,6 +78,10 @@ const MyInput = ({
78 </InputWrap> 78 </InputWrap>
79 <SearchIconWrap 79 <SearchIconWrap
80 onClick={() => { 80 onClick={() => {
81 + if (query === '') {
82 + alert('검색어를 입력 해 주세요.');
83 + return;
84 + }
81 const params = new URLSearchParams({ query }); 85 const params = new URLSearchParams({ query });
82 history.push(`search?${decodeURIComponent(params.toString())}`); 86 history.push(`search?${decodeURIComponent(params.toString())}`);
83 }} 87 }}
......