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

.

parent 1723112f
This diff is collapsed.
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>
);
}
......
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