@@ -12,12 +12,13 @@ interface Props {
1212}
1313
1414const NotificationItemCard = ( { data } : Props ) => {
15- const isRental = data . item . transactionTypes . includes ( 'RENTAL' ) ;
16- const isSale = data . item . transactionTypes . includes ( 'SALE' ) ;
17- const isDirect = data . item . tradeMethods . includes ( 'DIRECT' ) ;
18- const type = data . type ;
15+ const isRental = data . itemInfo . transactionTypes . includes ( 'RENTAL' ) ;
16+ const isSale = data . itemInfo . transactionTypes . includes ( 'SALE' ) ;
17+ const isDirect = data . itemInfo . tradeMethods . includes ( 'DIRECT' ) ;
18+ const type = data . notificationInfo . type ;
1919 const isRemind = type === 'APPOINTMENT_RENTAL_REMIND' || type === 'APPOINTMENT_RETURN_REMIND' ;
20- const remindDate = type === 'APPOINTMENT_RENTAL_REMIND' ? data . rentalDate : data . returnDate ;
20+ const remindDate =
21+ type === 'APPOINTMENT_RENTAL_REMIND' ? data . appointmentInfo . rentalDate : data . appointmentInfo . returnDate ;
2122
2223 const label = ( ( ) => {
2324 if ( type === 'APPOINTMENT_CANCEL' ) return 'λμ Pickμ΄ μ·¨μλμ΄μ.' ;
@@ -55,37 +56,37 @@ const NotificationItemCard = ({ data }: Props) => {
5556 </ div >
5657 ) }
5758 </ div >
58- < Link className = { s . Container } to = { `/pick-detail/${ data . appointmentId } ` } >
59- < img className = { s . Image } src = { getImageUrl ( data . item . thumbnail ) } aria-hidden />
59+ < Link className = { s . Container } to = { `/pick-detail/${ data . appointmentInfo . id } ` } >
60+ < img className = { s . Image } src = { getImageUrl ( data . itemInfo . thumbnail ) } aria-hidden />
6061 < div className = { s . Info } >
6162 < div className = { s . Header } >
62- < h2 className = { s . Title } > { data . item . title } </ h2 >
63+ < h2 className = { s . Title } > { data . itemInfo . title } </ h2 >
6364 < div className = { s . Price } >
64- { isRental && < PriceToken price = { data . item . rentalFee } deposit = { data . item . deposit } /> }
65- { isSale && < PriceToken price = { data . item . salePrice } /> }
65+ { isRental && < PriceToken price = { data . itemInfo . rentalFee } deposit = { data . itemInfo . deposit } /> }
66+ { isSale && < PriceToken price = { data . itemInfo . salePrice } /> }
6667 </ div >
6768 </ div >
6869 < div className = { s . Footer } >
6970 < div className = { s . Tokens } >
7071 < ItemTokenList
7172 showCount = { 3 }
7273 itemInfo = { {
73- productTypes : data . item . productTypes ,
74- quality : data . item . quality ,
75- size : data . item . size ,
76- color : data . item . color ,
77- tradeMethods : data . item . tradeMethods ,
74+ productTypes : data . itemInfo . productTypes ,
75+ quality : data . itemInfo . quality ,
76+ size : data . itemInfo . size ,
77+ color : data . itemInfo . color ,
78+ tradeMethods : data . itemInfo . tradeMethods ,
7879 } }
7980 />
8081 </ div >
8182 < div className = { s . Interactions } >
8283 < div className = { s . InteractionItem } >
8384 < span className = "mgc_heart_fill" />
84- < p > { data . item . likeCount } </ p >
85+ < p > { data . itemInfo . likeCount } </ p >
8586 </ div >
8687 < div className = { s . InteractionItem } >
8788 < span className = "mgc_chat_2_fill" />
88- < p > { data . item . chatRoomCount } </ p >
89+ < p > { data . itemInfo . chatRoomCount } </ p >
8990 </ div >
9091 </ div >
9192 </ div >
0 commit comments