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
search-page
Commits
c3d80753
Commit
c3d80753
authored
Jan 31, 2021
by
Lee SeoYeon
Browse files
.
parent
1723112f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
client/.eslintcache
View file @
c3d80753
This diff is collapsed.
Click to expand it.
client/src/Pages/Place.js
View file @
c3d80753
import
axios
from
'
axios
'
;
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
{
Container
,
Row
,
Button
,
}
from
'
react-bootstrap
'
;
import
{
Container
,
Row
,
Button
,
Col
,
ListGroup
}
from
'
react-bootstrap
'
;
import
queryString
from
'
query-string
'
function
Place
(
props
)
{
...
...
@@ -53,17 +53,21 @@ function Place(props) {
return
(
<
Container
{...
props
}
>
<
Row
>
{
place
}
{
Array
.
isArray
(
reviews
)
?
reviews
.
map
((
review
,
index
)
=>
{
return
(
<
Row
className
=
"
mt-4
"
>
<
ListGroup
>
<
ListGroup
.
Item
className
=
"
mt-4
"
>
<
a
href
=
{
review
.
link
}
>
{
review
.
title
}
<
/a
>
<
div
>
{
review
.
summary
}
<
/div
>
<
div
>
{
review
.
content
}
<
/div
>
<
/Row
>
<
/ListGroup.Item
>
<
/ListGroup
>
)
})
:
"
리뷰가 없습니다.
"
}
:
"
리뷰가 없습니다.
"
}
<
/Row
>
<
/Container
>
);
}
...
...
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