Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
butter-studio
Commits
8465e06c
Commit
8465e06c
authored
Jul 23, 2021
by
Kim, Subin
Browse files
useEffect 조건 search -> title 로 변경
parent
c54b5a00
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/components/SearchResult.js
View file @
8465e06c
...
@@ -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
>
}
}
<
/
>
<
/
>
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment