Skip to content

Commit

Permalink
🎉 내 카드 이미지 누를시, 물건 상세 정보 페이지로 이동 기능 (#139)
Browse files Browse the repository at this point in the history
* 🎉 검색 필터 모달 UI 및 기능 변경(일괄적용, 일괄 초기화 버튼 생성)

* 🎉 리스트 staleTime 시간 변경

* 🎉 개별 알림 처리 기능 구현

* 🎉 내 카드 이미지 누를시, 물건 상세 정보 페이지로 이동 기능
  • Loading branch information
doggopawer authored Nov 29, 2023
1 parent a582093 commit 52b540e
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { formatDistanceToNow } from 'date-fns'
import koLocale from 'date-fns/locale/ko'
import Image from 'next/image'
import Link from 'next/link'
import { useRouter } from 'next/navigation'
import ReservedBadge from '@/components/domain/badge/reserved-badge'
import TradeAvailableBadge from '@/components/domain/badge/trade-available-badge'
import TradeCompleteBadge from '@/components/domain/badge/trade-complete-badge'
Expand Down Expand Up @@ -45,6 +46,7 @@ const MyCard = ({
status,
},
}: MyCardProps) => {
const router = useRouter()
return (
<div className="mb-6">
<Card size={'lg'}>
Expand All @@ -55,7 +57,12 @@ const MyCard = ({
gap={'space'}
className="h-full"
>
<div className="relative h-full min-w-[128px]">
<div
className="relative h-full min-w-[128px] cursor-pointer"
onClick={() => {
router.push(AppPath.card(String(cardId)))
}}
>
<CardImage
className="rounded-lg"
src={thumbnail}
Expand Down

0 comments on commit 52b540e

Please sign in to comment.