Conversation
b4fb656 to
6e8b5cd
Compare
-ReviewList 추가 -ReviewCard 수정
package.json
Outdated
| "next": "14.1.0", | ||
| "qs": "^6.11.2", | ||
| "react": "^18.3.1", | ||
| "react-dom": "^18.3.1", | ||
| "react": "^18", | ||
| "react-dom": "^18", |
There was a problem hiding this comment.
swiper 설치하신거 아닌가요?
city/[id] page들어가니 에러가 나서 보니 package.json에 없네요??
There was a problem hiding this comment.
conflict 해결 과정에서 packge.json이 수정된것 같습니다.
| const PACKAGE_VERSION = '2.2.13' | ||
| const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423' | ||
| const IS_MOCKED_RESPONSE = Symbol('isMockedResponse') |
There was a problem hiding this comment.
.prettierrc.json에 "singleQuote": false 옵션을 줬는데도 정윤님 auto save할때는 자동으로 single quete로 저장되나보군요
이유가 뭘까요? 하나로 맞추지 않으면 pr마다 변경사항이 발생할 것 같습니다
(따로 설정파일 있으시면 공유해주셔도 좋을 것 같아요 pr에는 안보이네요)
| import React from "react"; | ||
| import Image from "next/image"; | ||
| import { Pagination } from "swiper/modules"; | ||
| import { Swiper, SwiperSlide } from "swiper/react"; | ||
| import LocationIcon from "@/components/icons/LocationIcon"; | ||
| import { Tag } from "@/components/ui/Tag"; | ||
| import Link from "next/link"; | ||
| import WithTitleWrapper from "@/components/common/wrapper/WithTitleWrapper"; | ||
| import RecommendTravelCard from "../../components/RecommendTravelCard/RecommendTravelCard"; | ||
| import ReviewCard from "../../components/Review/ReviewCard"; | ||
| import 'swiper/css'; | ||
| import 'swiper/css/navigation'; | ||
| import 'swiper/css/pagination'; |
There was a problem hiding this comment.
lint에 sort-imports rule을 걸어놨는데 이게 통과가 됐군요 다시 봐야겠네요
Auto Import extension 설치해주시면 저희 사이에서 import 변경이 없을 것 같습니다..!
| return ( | ||
| <main> | ||
| <MobileHomeHeader /> | ||
| <div className="flex p-4" style={{flexWrap:"wrap"}}> |
There was a problem hiding this comment.
tailwind와 inner style이 혼합되어 쓰이네요
| const placeCityType: PlaceCityType = { | ||
| "place-theme": "THEME", | ||
| "place-trending": "TRAVEL_PLACE", | ||
| "city-trending": "CITY", |
There was a problem hiding this comment.
PlaceCityType에서 value가 "THEME", "TRAVEL_PLACE", "CITY"로 고정이라면 string이 아니라 ENUM등을 사용해서 타입을 더 좁힐 수 있을 것 같습니다 :)
| <div className="absolute block border rounded-3xl bg-gray-200 opacity-40 px-2"> | ||
| <span>props city</span> | ||
| </div> | ||
| } | ||
| <img src={img} alt="place_image" className="block border border-grey-300 rounded-2xl" style={{height: "155px"}}/> |
There was a problem hiding this comment.
next Image를 사용하는게 더 좋아보입니다~!
width, height에 164px에 맞는 tailwind 사이즈가 없어서 사용하신 것 같은데 tailwind.config에 추가하셔도 됩니다.
(이건 개인적인 의견인데 디자인에서는 화면 크기가 375px일때 row-gap: 15px, col-gap:24px로 하고 image는 나머지 공간을 꽉채우는 방식이 더 괜찮지 않을까요? 화면이 줄어들어도 문제고, 화면이 늘어나도 이미지 사이 공간만 커질 것 같아서요)
|
|
||
| </div> | ||
| <MobileNavigation /> | ||
| </main> |
There was a problem hiding this comment.
(home)/(list)/place-theme/page, (home)/(list)/place-trending/page, (home)/(list)/city-trending/page page에서 모두
const pathname = usePathname();
const key = pathname.split('/')[1] as keyof PlaceCityType;
//...
<PlaceList placeCityType={placeCityType[key] as "THEME" | "TRAVEL_PLACE" | "CITY"} />
위 코드를 사용하셨는데 각각의 페이지에서는 무조건 "THEME" | "TRAVEL_PLACE" | "CITY" 중 하나의 값을 갖으니까 <PlaceList placeCityType={"THEME"} />등으로 간단하게 해결할 수 있지 않을까요?
|
혹시 vscode setting.json에 아래 설정 추가 된 상태신가요? auto save할때 lint에 맞게 수정해주는 옵션입니다~! |
| @@ -119,23 +118,11 @@ return <> | |||
| </div> | |||
| <Link href={"/place-trending"} className="text-[#b8b8b8] text-xs">더보기</Link> | |||
There was a problem hiding this comment.
text-[#b8b8b8] => text-gray-300 😄
| <div className="flex items-center"> | ||
| <Card.StarButton /> | ||
| <div className="w-1 h-50 px-2" /> | ||
| <p className="text-[12px]">{'위치 보기'}</p> |
| {useSideButton && <Link className="text-[12px] ml-2.5" href="/">{sideButtonTitle ?? '보기'}</Link>} | ||
| </div> |
There was a problem hiding this comment.
| @@ -24,8 +24,8 @@ | |||
| "lucide-react": "^0.344.0", | |||
| "next": "14.1.0", | |||
There was a problem hiding this comment.
next version과 swipper library가 여전히 사라진 것 같습니다 ㅎㅎ
로컬에서 실행되시나요?? npm install 한번 더 하시면 안될 것 같은데


Reference 📚
Motivation 🤔
Key Chains 🔑
To Reviewers 🙏
코드 의견 주시면 감사하겠습니다 :)