Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 지도 페이지 마크업 (작업 중) #15

Merged
merged 1 commit into from
Aug 21, 2023
Merged

feat: 지도 페이지 마크업 (작업 중) #15

merged 1 commit into from
Aug 21, 2023

Conversation

lxxmnmn
Copy link
Collaborator

@lxxmnmn lxxmnmn commented Aug 20, 2023

📌 이슈 번호

#6

✨ 작업 내용

  • Kakao Map API 사용하여 현위치 렌더링
  • 지도 버튼 컴포넌트 생성

📝 작업 상세 내용

🎨 구현 스크린샷

💎 TODO

  • 커스텀 컨트롤 올리기
  • API 연동하여 데이터 페칭
  • 버튼 클릭 이벤트 부여

@lxxmnmn lxxmnmn added the v1.0 1차 label Aug 20, 2023
@lxxmnmn lxxmnmn self-assigned this Aug 20, 2023
@github-actions github-actions bot added the feature 기능 개발 label Aug 20, 2023
Copy link
Contributor

@dmswl98 dmswl98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨슴니당~~!!

Comment on lines +35 to +36
const [latitude, setLatitude] = useState(33.450701); //현재 위치 (위도)
const [longitude, setLongitude] = useState(126.570667); //현재 위치 (경도)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useEffect 내부에서도 위도와 경도 값이 사용되고 있어서 상수화하면 좋을 것 같네용

Comment on lines +30 to +35
const Button = styled.div`
width: 40px;
height: 40px;
padding: 10px;
color: ${palette.white};
`;
Copy link
Contributor

@dmswl98 dmswl98 Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ask; 네이밍은 버튼인데 div 태그인 이유가 있을까요오??

import ShopIcon from '@assets/svg/shopIcon.svg';
import { PLACE_TYPE } from '@constants/map';

const IconMapType = (placeType: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

placeType값이 MAP_BUTTON_TYPE 상수의 키 값만 들어오는 것 같은데 아래처럼 타입을 좁혀볼 수 있을 것 같아요!!

Suggested change
const IconMapType = (placeType: string) => {
const IconMapType = (placeType: keyof typeof MAP_BUTTON_TYPE) => {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다!!! 리뷰 달아주신 부분들 emotion 적용 후에 수정해볼게요

@lxxmnmn lxxmnmn merged commit d1723fc into main Aug 21, 2023
@lxxmnmn lxxmnmn deleted the feat/map branch August 21, 2023 07:15
@lxxmnmn lxxmnmn changed the title feat: 지도 페이지 마크업 feat: 지도 페이지 마크업 (작업 중) Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 기능 개발 v1.0 1차
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants