Commit c7c00c29 authored by baesangjune's avatar baesangjune
Browse files

머지 및 UI수정

parent 4eb8170c
[{"C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\Bookmark.js":"1","C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\Place.js":"2"},{"size":5770,"mtime":1612274308433,"results":"3","hashOfConfig":"4"},{"size":6513,"mtime":1612273971390,"results":"5","hashOfConfig":"4"},{"filePath":"6","messages":"7","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"13y9yvi",{"filePath":"8","messages":"9","errorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\Bookmark.js",["10","11","12"],"C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\Place.js",["13"],{"ruleId":"14","severity":1,"message":"15","line":2,"column":45,"nodeType":"16","messageId":"17","endLine":2,"endColumn":48},{"ruleId":"14","severity":1,"message":"18","line":2,"column":50,"nodeType":"16","messageId":"17","endLine":2,"endColumn":56},{"ruleId":"19","severity":1,"message":"20","line":66,"column":8,"nodeType":"21","endLine":66,"endColumn":18,"suggestions":"22"},{"ruleId":null,"fatal":true,"severity":2,"message":"23","line":4,"column":2},"no-unused-vars","'Nav' is defined but never used.","Identifier","unusedVar","'Navbar' is defined but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'getBookmark'. Either include it or remove the dependency array.","ArrayExpression",["24"],"Parsing error: Unexpected token\n\n 2 | import axios from 'axios';\n 3 | import React, { useEffect, useState } from 'react';\n> 4 | <<<<<<< HEAD\n | ^\n 5 | import { Container, Image } from 'react-bootstrap';\n 6 | import queryString from 'query-string'\n 7 | import ohuh from '../ohuh-sm.PNG';",{"desc":"25","fix":"26"},"Update the dependencies array to be: [bookmark, getBookmark]",{"range":"27","text":"28"},[2332,2342],"[bookmark, getBookmark]"] [{"C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\Bookmark.js":"1","C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\Place.js":"2","C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\Search.js":"3","C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\App.js":"4"},{"size":5770,"mtime":1612274308433,"results":"5","hashOfConfig":"6"},{"size":6513,"mtime":1612273971390,"results":"7","hashOfConfig":"6"},{"size":8014,"mtime":1612274731884,"results":"8","hashOfConfig":"6"},{"size":6659,"mtime":1612274895073,"results":"9","hashOfConfig":"6"},{"filePath":"10","messages":"11","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"13y9yvi",{"filePath":"12","messages":"13","errorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"14","messages":"15","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"16","messages":"17","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\Bookmark.js",["18","19","20"],"C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\Place.js",["21"],"C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\Search.js",["22","23","24"],"C:\\Users\\노트북펜\\Desktop\\2021YDK\\search-page\\client\\src\\Pages\\App.js",["25"],{"ruleId":"26","severity":1,"message":"27","line":2,"column":45,"nodeType":"28","messageId":"29","endLine":2,"endColumn":48},{"ruleId":"26","severity":1,"message":"30","line":2,"column":50,"nodeType":"28","messageId":"29","endLine":2,"endColumn":56},{"ruleId":"31","severity":1,"message":"32","line":66,"column":8,"nodeType":"33","endLine":66,"endColumn":18,"suggestions":"34"},{"ruleId":null,"fatal":true,"severity":2,"message":"35","line":4,"column":2},{"ruleId":"26","severity":1,"message":"36","line":21,"column":12,"nodeType":"28","messageId":"29","endLine":21,"endColumn":17},{"ruleId":"31","severity":1,"message":"37","line":64,"column":8,"nodeType":"33","endLine":64,"endColumn":15,"suggestions":"38"},{"ruleId":"39","severity":1,"message":"40","line":136,"column":35,"nodeType":"41","endLine":136,"endColumn":76},{"ruleId":"26","severity":1,"message":"42","line":4,"column":64,"nodeType":"28","messageId":"29","endLine":4,"endColumn":68},"no-unused-vars","'Nav' is defined but never used.","Identifier","unusedVar","'Navbar' is defined but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'getBookmark'. Either include it or remove the dependency array.","ArrayExpression",["43"],"Parsing error: Unexpected token\n\n 2 | import axios from 'axios';\n 3 | import React, { useEffect, useState } from 'react';\n> 4 | <<<<<<< HEAD\n | ^\n 5 | import { Container, Image } from 'react-bootstrap';\n 6 | import queryString from 'query-string'\n 7 | import ohuh from '../ohuh-sm.PNG';","'error' is assigned a value but never used.","React Hook useEffect has missing dependencies: 'getAssociation', 'getBookmark', 'props.history', and 'search'. Either include them or remove the dependency array.",["44"],"react/jsx-no-duplicate-props","No duplicate props allowed","JSXAttribute","'Card' is defined but never used.",{"desc":"45","fix":"46"},{"desc":"47","fix":"48"},"Update the dependencies array to be: [bookmark, getBookmark]",{"range":"49","text":"50"},"Update the dependencies array to be: [getAssociation, getBookmark, props.history, search, state]",{"range":"51","text":"52"},[2332,2342],"[bookmark, getBookmark]",[2429,2436],"[getAssociation, getBookmark, props.history, search, state]"]
\ No newline at end of file \ No newline at end of file
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Link, Redirect } from 'react-router-dom'; import { Link, Redirect } from 'react-router-dom';
import ohuh from '../ohuh-sm.PNG'; import ohuh from '../ohuh.PNG';
import { Container, Row, Form, Image, InputGroup, Button, Col, Card, Nav } from 'react-bootstrap'; import { Container, Row, Form, Image, InputGroup, Button, Col, Card, Nav } from 'react-bootstrap';
import axios from 'axios'; import axios from 'axios';
import { handleLogout, isAuthenticated } from '../utils/auth.js' import { handleLogout, isAuthenticated } from '../utils/auth.js'
......
...@@ -149,15 +149,15 @@ function Search(props) { ...@@ -149,15 +149,15 @@ function Search(props) {
</InputGroup> </InputGroup>
</Form> </Form>
</Row> </Row>
<Row className="d-flex flex-wrap"> <Row>
{console.log("#####################33", pagePlace)} {console.log("#####################33", pagePlace)}
{pagePlace.map((place, index) => { {pagePlace.map((place, index) => {
return ( return (
<Col key={index} md={6} > <Col key={index} md={6} >
<Card align="right" border="info" style={{ margin: "2%" }}> <Card border="info" style={{ margin: "2%" }}>
<Row className="d-flex justify-content-between"> <Row>
<Card.Header style={{ margin: "0", marginLeft: "3%", marginRight: "3%", fontSize: '200%', fontWeight: 'bold', width: "100vw" }} >{place.name} <Card.Header style={{ margin: "0", marginLeft: "3%", marginRight: "3%", fontSize: '200%', fontWeight: 'bold', width: "100vw" }} >
{console.log(bookmark.findIndex(i => i.name === place.name))} {console.log(bookmark.findIndex(i => i.name === place.name))}
{user ? {user ?
<Button <Button
...@@ -165,6 +165,7 @@ function Search(props) { ...@@ -165,6 +165,7 @@ function Search(props) {
onClick={() => handlebookmark(index, place)}> onClick={() => handlebookmark(index, place)}>
<Icon.BookmarkStarFill size={35} /> <Icon.BookmarkStarFill size={35} />
</Button> : null} </Button> : null}
{place.name}
</Card.Header> </Card.Header>
</Row> </Row>
<Card.Img variant="top" style={{ padding: "5%", width: "100%", height: "340px" }} src={place.img} /> <Card.Img variant="top" style={{ padding: "5%", width: "100%", height: "340px" }} src={place.img} />
......
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