Skip to content

Commit

Permalink
🐛fix:카카오맵 오류 잠정적 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
tkv00 committed Dec 17, 2024
1 parent 9a09130 commit 7d17785
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/nyangmap/CatMarker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function CatMarker({ post, onClick }) {
{/* 호버 시 나타나는 정보 */}
<div className="absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 bg-white px-2 py-1 rounded shadow-md opacity-0 transition-opacity duration-300 group-hover:opacity-100">
<p className="text-xs font-semibold whitespace-nowrap">
{post.catName}
{post?.catName}
</p>
</div>
</div>
Expand Down
4 changes: 1 addition & 3 deletions src/components/nyangmap/KakaoMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ export default function KakoMap() {
fetchMapData();
}, [location, setPostsCount]);

if (locationError || error) {
return <Error />;
}

if (loading) {
return <Loading />;
}
Expand Down
3 changes: 1 addition & 2 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import App from "./App.jsx";
import "./index.css";
import { BrowserRouter } from "react-router-dom";
import { QueryClient, QueryClientProvider } from "react-query";
import { ReactQueryDevtools } from "react-query/devtools";

const queryClient = new QueryClient();
createRoot(document.getElementById("root")).render(
<QueryClientProvider client={queryClient}>
<BrowserRouter>
<App />
<ReactQueryDevtools />
</BrowserRouter>
</QueryClientProvider>

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Friend.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from "react";

import Header from "../components/common/Header";
import NavBar from "../components/common/NavBar";
import Title from "../components/common/Title";
Expand Down

0 comments on commit 7d17785

Please sign in to comment.