\r\n \r\n {/* */}\r\n {place.name}\r\n \r\n \r\n \r\n \r\n {place.address} \r\n \r\n setShowSet([false, false, false, false])} />\r\n \r\n \r\n \r\n )\r\n })}\r\n \r\n { console.log(showSet)}\r\n {/* show가 전부 true로 바뀌어서 전부 다 보이게 되는 것이다. */}\r\n \r\n \r\n \r\n \r\n\r\n );\r\n}\r\n\r\nexport default Search\r\n","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\App.js",["78","79","80","81"],"import React, { useEffect, useState } from 'react';\r\nimport { Link, Redirect } from 'react-router-dom';\r\nimport ohuh from './ohuh.PNG'\r\nimport { Container, Row, Form, Image, InputGroup, Button, Col, FormControl, Navbar, Nav } from 'react-bootstrap';\r\nimport { handleLogout, isAuthenticated } from './utils/auth.js'\r\n\r\nfunction App() {\r\n const [state, setState] = useState(false);\r\n const [search, setSearch] = useState(\"\");\r\n const user = isAuthenticated()\r\n\r\n if (state !== false) {\r\n return ;\r\n }\r\n\r\n const handleChange = (e) => {\r\n setSearch(e.target.value);\r\n } //바뀌는 것이 있을때 이벤트 발생\r\n\r\n const handleSubmit = () => {\r\n setState(true);\r\n } //submit 버튼을 누르면 state 값을 true로 바뀐다\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default App;\r\n","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Components\\PrivateRoute.js",[],"C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Bookmark.js",["82","83","84","85","86","87","88","89","90","91","92","93","94","95","96"],"import React, { useState, useEffect } from 'react'\r\nimport { Alert, Col, Card, Container, Form, Row, Button, Nav, Navbar, ListGroup, Image, Table } from \"react-bootstrap\"\r\nimport axios from \"axios\"\r\nimport catchErrors from './utils/catchErrors.js'\r\nimport { isAuthenticated } from './utils/auth'\r\n\r\n\r\nconst INIT_PAGE = {\r\n bookmark: ['성산일출봉', '제주도', '한라산', '주상절리', '오설록 티 뮤지엄'],\r\n \r\n}\r\n\r\nconst user = isAuthenticated()\r\n\r\nfunction Bookmark() {\r\n const [page, setPage] = useState(INIT_PAGE)\r\n const [error, setError] = useState('')\r\n const [success, setSuccess] = useState(false)\r\n const [state, setState] = useState(false);\r\n\r\n const user = isAuthenticated()\r\n\r\n const userId = localStorage.getItem('loginStatus')\r\n\r\n async function getBookmark( ) {\r\n try {\r\n setError('')\r\n console.log(page)\r\n console.log(userId)\r\n await axios.post(`/api/users/bookmark`, {bookmark: page, userId: userId})\r\n \r\n } catch (error) {\r\n catchErrors(error, setError)\r\n } \r\n }\r\n\r\n // async function handleSubmit(e){\r\n // setState(true); //버튼이 눌려서 handlesubmit이될때 setState값이 true로 바뀐다\r\n // try { //respons 서버에 post로 요청하여 데이터를 받아온다\r\n // const response = await axios.post('/api/users/bookmark', page)\r\n // setSuccess(true)\r\n // } catch (error) {\r\n // console.log(error)\r\n // catchErrors(error, setError)\r\n // }\r\n // }\r\n\r\n // useEffect(() => {\r\n // getBookmark(user)\r\n // }, [user])\r\n\r\n\r\n\r\n return (\r\n \r\n \r\n 북마크\r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default Bookmark",{"ruleId":"97","severity":1,"message":"98","line":11,"column":8,"nodeType":"99","messageId":"100","endLine":11,"endColumn":13},{"ruleId":"101","replacedBy":"102"},{"ruleId":"103","replacedBy":"104"},{"ruleId":"97","severity":1,"message":"105","line":7,"column":14,"nodeType":"99","messageId":"100","endLine":7,"endColumn":19},{"ruleId":"106","severity":1,"message":"107","line":21,"column":6,"nodeType":"108","endLine":21,"endColumn":8,"suggestions":"109"},{"ruleId":"101","replacedBy":"110"},{"ruleId":"103","replacedBy":"111"},{"ruleId":"97","severity":1,"message":"112","line":5,"column":83,"nodeType":"99","messageId":"100","endLine":5,"endColumn":88},{"ruleId":"97","severity":1,"message":"113","line":7,"column":8,"nodeType":"99","messageId":"100","endLine":7,"endColumn":19},{"ruleId":"97","severity":1,"message":"98","line":9,"column":8,"nodeType":"99","messageId":"100","endLine":9,"endColumn":13},{"ruleId":"97","severity":1,"message":"114","line":22,"column":12,"nodeType":"99","messageId":"100","endLine":22,"endColumn":18},{"ruleId":"97","severity":1,"message":"115","line":23,"column":12,"nodeType":"99","messageId":"100","endLine":23,"endColumn":16},{"ruleId":"97","severity":1,"message":"116","line":24,"column":12,"nodeType":"99","messageId":"100","endLine":24,"endColumn":16},{"ruleId":"97","severity":1,"message":"117","line":24,"column":18,"nodeType":"99","messageId":"100","endLine":24,"endColumn":25},{"ruleId":"97","severity":1,"message":"118","line":25,"column":12,"nodeType":"99","messageId":"100","endLine":25,"endColumn":19},{"ruleId":"97","severity":1,"message":"119","line":25,"column":21,"nodeType":"99","messageId":"100","endLine":25,"endColumn":31},{"ruleId":"97","severity":1,"message":"120","line":26,"column":12,"nodeType":"99","messageId":"100","endLine":26,"endColumn":17},{"ruleId":"97","severity":1,"message":"121","line":26,"column":19,"nodeType":"99","messageId":"100","endLine":26,"endColumn":27},{"ruleId":"97","severity":1,"message":"122","line":28,"column":11,"nodeType":"99","messageId":"100","endLine":28,"endColumn":22},{"ruleId":"97","severity":1,"message":"123","line":29,"column":11,"nodeType":"99","messageId":"100","endLine":29,"endColumn":21},{"ruleId":"124","severity":1,"message":"125","line":99,"column":35,"nodeType":"126","endLine":99,"endColumn":76},{"ruleId":"97","severity":1,"message":"127","line":1,"column":17,"nodeType":"99","messageId":"100","endLine":1,"endColumn":26},{"ruleId":"97","severity":1,"message":"128","line":2,"column":10,"nodeType":"99","messageId":"100","endLine":2,"endColumn":14},{"ruleId":"97","severity":1,"message":"129","line":4,"column":64,"nodeType":"99","messageId":"100","endLine":4,"endColumn":75},{"ruleId":"97","severity":1,"message":"130","line":4,"column":77,"nodeType":"99","messageId":"100","endLine":4,"endColumn":83},{"ruleId":"97","severity":1,"message":"127","line":1,"column":27,"nodeType":"99","messageId":"100","endLine":1,"endColumn":36},{"ruleId":"97","severity":1,"message":"131","line":2,"column":10,"nodeType":"99","messageId":"100","endLine":2,"endColumn":15},{"ruleId":"97","severity":1,"message":"132","line":2,"column":17,"nodeType":"99","messageId":"100","endLine":2,"endColumn":20},{"ruleId":"97","severity":1,"message":"133","line":2,"column":22,"nodeType":"99","messageId":"100","endLine":2,"endColumn":26},{"ruleId":"97","severity":1,"message":"134","line":2,"column":45,"nodeType":"99","messageId":"100","endLine":2,"endColumn":48},{"ruleId":"97","severity":1,"message":"135","line":2,"column":82,"nodeType":"99","messageId":"100","endLine":2,"endColumn":87},{"ruleId":"97","severity":1,"message":"136","line":2,"column":89,"nodeType":"99","messageId":"100","endLine":2,"endColumn":94},{"ruleId":"97","severity":1,"message":"137","line":13,"column":7,"nodeType":"99","messageId":"100","endLine":13,"endColumn":11},{"ruleId":"97","severity":1,"message":"117","line":16,"column":18,"nodeType":"99","messageId":"100","endLine":16,"endColumn":25},{"ruleId":"97","severity":1,"message":"120","line":17,"column":12,"nodeType":"99","messageId":"100","endLine":17,"endColumn":17},{"ruleId":"97","severity":1,"message":"118","line":18,"column":12,"nodeType":"99","messageId":"100","endLine":18,"endColumn":19},{"ruleId":"97","severity":1,"message":"119","line":18,"column":21,"nodeType":"99","messageId":"100","endLine":18,"endColumn":31},{"ruleId":"97","severity":1,"message":"138","line":19,"column":12,"nodeType":"99","messageId":"100","endLine":19,"endColumn":17},{"ruleId":"97","severity":1,"message":"139","line":19,"column":19,"nodeType":"99","messageId":"100","endLine":19,"endColumn":27},{"ruleId":"97","severity":1,"message":"137","line":21,"column":11,"nodeType":"99","messageId":"100","endLine":21,"endColumn":15},"no-unused-vars","'axios' is defined but never used.","Identifier","unusedVar","no-native-reassign",["140"],"no-negated-in-lhs",["141"],"'setDb' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'getReview'. Either include it or remove the dependency array.","ArrayExpression",["142"],["140"],["141"],"'Modal' is defined but never used.","'catchErrors' is defined but never used.","'mobile' is assigned a value but never used.","'show' is assigned a value but never used.","'page' is assigned a value but never used.","'setPage' is assigned a value but never used.","'success' is assigned a value but never used.","'setSuccess' is assigned a value but never used.","'error' is assigned a value but never used.","'setError' is assigned a value but never used.","'handleClose' is assigned a value but never used.","'handleShow' is assigned a value but never used.","react/jsx-no-duplicate-props","No duplicate props allowed","JSXAttribute","'useEffect' is defined but never used.","'Link' is defined but never used.","'FormControl' is defined but never used.","'Navbar' is defined but never used.","'Alert' is defined but never used.","'Col' is defined but never used.","'Card' is defined but never used.","'Row' is defined but never used.","'Image' is defined but never used.","'Table' is defined but never used.","'user' is assigned a value but never used.","'state' is assigned a value but never used.","'setState' is assigned a value but never used.","no-global-assign","no-unsafe-negation",{"desc":"143","fix":"144"},"Update the dependencies array to be: [getReview]",{"range":"145","text":"146"},[605,607],"[getReview]"]