-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨슴니당~~!!
const [latitude, setLatitude] = useState(33.450701); //현재 위치 (위도) | ||
const [longitude, setLongitude] = useState(126.570667); //현재 위치 (경도) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useEffect 내부에서도 위도와 경도 값이 사용되고 있어서 상수화하면 좋을 것 같네용
const Button = styled.div` | ||
width: 40px; | ||
height: 40px; | ||
padding: 10px; | ||
color: ${palette.white}; | ||
`; |
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
placeType
값이 MAP_BUTTON_TYPE
상수의 키 값만 들어오는 것 같은데 아래처럼 타입을 좁혀볼 수 있을 것 같아요!!
const IconMapType = (placeType: string) => { | |
const IconMapType = (placeType: keyof typeof MAP_BUTTON_TYPE) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감사합니다!!! 리뷰 달아주신 부분들 emotion 적용 후에 수정해볼게요
📌 이슈 번호
#6
✨ 작업 내용
📝 작업 상세 내용
🎨 구현 스크린샷
💎 TODO