Skip to content

Commit

Permalink
fix: 코스 검색 결과 링크 수정
Browse files Browse the repository at this point in the history
fix: 장소 상세 화면 내 코스 목록에서 코스 상세 기록 화면으로 접근 가능한
링크 추가
  • Loading branch information
hatchling13 committed Mar 28, 2024
1 parent b5e15ec commit a65685d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/_components/course/Course.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function Course({ data }: { data: TCourseDetail }) {
</Link>
<Link
className="px-2 w-full text-gray-500 text-xl font-medium truncate select-none hover:underline text-ellipsis"
href={`/courses/${id}`}
href={`/detail/courses/${id}`}
>
{title}
</Link>
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/app/_components/place/course/Course.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Reaction from '../../reaction/Reaction';
import type { TCourse } from '@/types/response';

import StarIcon from '/public/icons/star.svg';
import Link from 'next/link';

export default function Course({
placeId,
Expand All @@ -41,6 +42,14 @@ export default function Course({

return (
<article className="py-2 flex flex-col gap-4">
<div className="px-4">
<Link
className="text-lg font-medium hover:underline"
href={`/detail/courses/${travelId}`}
>
{title}
</Link>
</div>
<div className="px-4 flex justify-between items-center">
<div className="flex gap-1 items-center">
<RoundProfile
Expand Down

0 comments on commit a65685d

Please sign in to comment.