Skip to content

Commit

Permalink
Merge branch 'refs/heads/frontend' into feature/fe/#338-addCharacterImg
Browse files Browse the repository at this point in the history
  • Loading branch information
happyhyep committed Nov 29, 2024
2 parents ce1466d + e0a6e45 commit e6d4a77
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/src/component/searchbox/SearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ export const SearchBox = (props: ISearchBoxProps) => {
setError(null);

try {
const apiUrl = `https://cors-anywhere.herokuapp.com/https://openapi.naver.com/v1/search/local.json?query=${encodeURIComponent(
inputValue,
)}&display=5&start=1&sort=random`;

// const apiUrl = `https://openapi.naver.com/v1/search/local.json?query=${encodeURIComponent(
// const apiUrl = `https://cors-anywhere.herokuapp.com/https://openapi.naver.com/v1/search/local.json?query=${encodeURIComponent(
// inputValue,
// )}&display=10&start=1&sort=random`;
// )}&display=5&start=1&sort=random`;

const apiUrl = `https://openapi.naver.com/v1/search/local.json?query=${encodeURIComponent(
inputValue,
)}&display=10&start=1&sort=random`;

const response = await fetch(apiUrl, {
headers: {
Expand Down Expand Up @@ -130,7 +130,7 @@ export const SearchBox = (props: ISearchBoxProps) => {
}, 300);

// Todo : ์š”๋ถ€๋ถ„ ๋ฐ˜ํ™˜๊ฐ’ lint ์˜ค๋ฅ˜ ๋•Œ๋ฌธ์— ํ•ด๊ฒฐ์ด ์•ˆ๋ผ์š”...
// eslint-disable-next-line consistent-return

return () => {
clearTimeout(delayDebounceFn);
};
Expand Down

0 comments on commit e6d4a77

Please sign in to comment.