Commit c3d80753 authored by Lee SeoYeon's avatar Lee SeoYeon
Browse files

.

parent 1723112f
This diff is collapsed.
import axios from 'axios'; import axios from 'axios';
import React, { useEffect, useState } from 'react'; 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' import queryString from 'query-string'
function Place(props) { function Place(props) {
...@@ -53,17 +53,21 @@ function Place(props) { ...@@ -53,17 +53,21 @@ function Place(props) {
return ( return (
<Container {...props}> <Container {...props}>
<Row>
{place} {place}
{Array.isArray(reviews) ? reviews.map((review, index) => { {Array.isArray(reviews) ? reviews.map((review, index) => {
return ( return (
<Row className="mt-4"> <ListGroup>
<ListGroup.Item className="mt-4">
<a href={review.link}>{review.title}</a> <a href={review.link}>{review.title}</a>
<div>{review.summary}</div> <div>{review.summary}</div>
<div>{review.content}</div> <div>{review.content}</div>
</Row> </ListGroup.Item>
</ListGroup>
) )
}) })
: "리뷰가 없습니다."} : "리뷰가 없습니다."}
</Row>
</Container> </Container>
); );
} }
......
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