Commit 8465e06c authored by Kim, Subin's avatar Kim, Subin
Browse files

useEffect 조건 search -> title 로 변경

parent c54b5a00
...@@ -13,7 +13,7 @@ const SearchResult = () => { ...@@ -13,7 +13,7 @@ const SearchResult = () => {
useEffect(() => { useEffect(() => {
findforKeyword() findforKeyword()
}, [search]) }, [title])
async function findforKeyword() { async function findforKeyword() {
try { try {
...@@ -34,7 +34,7 @@ const SearchResult = () => { ...@@ -34,7 +34,7 @@ const SearchResult = () => {
<MovieCard list={result} /> <MovieCard list={result} />
</div> </div>
</> </>
) : <h3 className="text-white text-center my-5">'{title}' 관한 검색 결과가 존재하지 않습니다.</h3> ) : <h3 className="text-white text-center my-5 vh-100" style={{ wordBreak: "keep-all" }}>'{title}' 관한 검색 결과가 존재하지 않습니다.</h3>
} }
</> </>
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment