Skip to content

Commit

Permalink
rename: 서비스 파일명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
extinctmule committed Oct 25, 2024
1 parent 1cea96e commit 0d81a4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Map/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
/* global kakao */
import React, { useState, useEffect, useRef } from 'react';
import { getUserLocation } from '../../services/locationService';
import { fetchCafes } from '../../services/kakaoMapService';
import { fetchCafes } from '../../services/mapService';
import CafeMarker from '../Markers/CafeMarker';
import { debounce } from 'lodash';

const KAKAO_MAP_KEY = process.env.REACT_APP_KAKAO_MAP_KEY;

const loadKakaoMapScript = () => {
const loadMapScript = () => {
return new Promise((resolve, reject) => {
if (window.kakao && window.kakao.maps) {
resolve();
Expand Down Expand Up @@ -43,7 +43,7 @@ const Map = () => {

// 맵 스크립트 로드 및 초기 API 호출
useEffect(() => {
loadKakaoMapScript()
loadMapScript()
.then(() => {
kakao.maps.load(() => {
const container = mapRef.current;
Expand Down

0 comments on commit 0d81a4c

Please sign in to comment.