diff --git a/src/components/review/onLogin.jsx b/src/components/review/onLogin.jsx index 51ab45f..f382aa8 100644 --- a/src/components/review/onLogin.jsx +++ b/src/components/review/onLogin.jsx @@ -132,7 +132,7 @@ export default function OnLogin() { .catch((error) => { console.error("Error occurred while fetching:", error); }); - fetch(`http://223.p-e.kr:8080/get/stores/detail?storeId=${ID}`) + fetch(`http://localhost:8080/get/stores/detail?storeId=${ID}`) .then((response) => response.json()) .then((detailStore) => { // console.log(detailStore); diff --git a/src/components/review/reviewList.jsx b/src/components/review/reviewList.jsx index f734b25..07bba3f 100644 --- a/src/components/review/reviewList.jsx +++ b/src/components/review/reviewList.jsx @@ -17,8 +17,8 @@ import { storeIdState } from "../../atom"; const ScrollContainer = styled.div` overflow: scroll; - - /* width: 372px; */ + position: absolute; + width: 300px; height: 750px; &::-webkit-scrollbar { @@ -232,12 +232,13 @@ export default function ReviewList() { // console.log(ID); useEffect(() => { - fetch(`http://223.p-e.kr:8080/get/stores/detail?storeId=${ID}`, { + fetch(`http://localhost:8080/get/stores/detail?storeId=${ID}`, { redirect: "manual", // credentials: "include", }) .then((res) => res.json()) .then((res) => { + // console.log("AAAAAAAA", res) // setID(res.ID); setStoreName(res.storeName); setLocalNumberAddress(res.localNumberAddress); @@ -265,7 +266,7 @@ export default function ReviewList() { }, [ID]); useEffect(() => { - fetch(`http://223.p-e.kr:8080/get/store/spicy-level?storeId=${ID}`, { + fetch(`http://localhost:8080/get/store/spicy-level?storeId=${ID}`, { redirect: "manual", // credentials: "include", }) @@ -308,7 +309,6 @@ export default function ReviewList() { {review.reviewCountList && review.reviewCountList[0]}개 - {/* 리뷰 쓰기 */} 리뷰 쓰기 - {Array.isArray(data) && data.length > 0 ? ( data.map((review, index) => ( diff --git a/src/components/review/sidebar.jsx b/src/components/review/sidebar.jsx index 35c9d62..4c2badc 100644 --- a/src/components/review/sidebar.jsx +++ b/src/components/review/sidebar.jsx @@ -129,7 +129,7 @@ const Sidebar = ({ width = 300, children }) => { } }; - console.log(reviewUiState, completeReview); + // console.log(reviewUiState, completeReview); return ( // container @@ -148,6 +148,7 @@ const Sidebar = ({ width = 300, children }) => { {/* 리뷰 작성 완료 */} {/* 리뷰 보여주기 */} {detail ? onLogin ? pleaseWork() : : } + {detail ? ( toggleMenu()}> diff --git a/src/routes/map/MapContainer.jsx b/src/routes/map/MapContainer.jsx index 4983a32..7b7310e 100644 --- a/src/routes/map/MapContainer.jsx +++ b/src/routes/map/MapContainer.jsx @@ -126,7 +126,7 @@ export default function MapContainer() { setCurrentPosition({ lat, lng }); // const url = `http://223.p-e.kr:8080/get/stores?x=${lng}&y=${lat}&radius=10000`; - const url = `http://223.p-e.kr:8080/get/stores?x=${lng}&y=${lat}&radius=1000`; + const url = `http://localhost:8080/get/stores?x=${lng}&y=${lat}&radius=1000`; fetch(url) .then((response) => response.json()) .then((data) => { @@ -152,7 +152,7 @@ export default function MapContainer() { useEffect(() => { if (result.getLng && result.getLat) { fetch( - `http://223.p-e.kr:8080/get/stores?x=${result.getLng()}&y=${result.getLat()}&radius=1000` + `http://localhost:8080/get/stores?x=${result.getLng()}&y=${result.getLat()}&radius=1000` ) .then((response) => response.json()) .then((data) => { @@ -178,8 +178,7 @@ export default function MapContainer() { setIsOpen(!isOpen); // 리코일 // console.log(ID); if (!isOpen) { - const urlR = `http://223.p-e.kr:8080/get/store/spicy-level?storeId=${storeId}`; - + const urlR = `http://localhost:8080/get/store/spicy-level?storeId=${storeId}`; fetch(urlR) .then((response) => response.json()) .then((review) => { diff --git a/src/routes/mypage/MyPage.jsx b/src/routes/mypage/MyPage.jsx index ea2af34..720b28c 100644 --- a/src/routes/mypage/MyPage.jsx +++ b/src/routes/mypage/MyPage.jsx @@ -31,10 +31,6 @@ const CharContainer = styled.div` `; const CharImg = styled.div` - width: 228px; - height: 228px; - border-radius: 100%; - background-color: white; margin-top: 87px; `; @@ -221,7 +217,7 @@ export default function MyPage() { { Character } @@ -242,7 +238,7 @@ export default function MyPage() { 리뷰 내역 {data.map((review, index) => ( - {review.title} + {review.title} > 불점 {review.reviewSpicyLevel}개