Skip to content

Commit

Permalink
Feat: 인기여행지 좋아요 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
suehub committed Jan 7, 2024
1 parent 44eb38e commit fdecd83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Tours/ToursCategory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ToursCategory = ({
}, [isLoading]);

if (error) {
console.log('error - 예외 처리');
console.error('error');
}

const handleSelectRegion = (name: string) => {
Expand Down
7 changes: 2 additions & 5 deletions src/components/Tours/ToursItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { TourType } from '@/@types/tours.types';
import { HeartIcon, StarIcon } from '@components/common/icons/Icons';
import Like from '@components/common/like/Like';
import { useNavigate } from 'react-router-dom';

const ToursItem = ({ tour }: { tour: TourType }) => {
Expand All @@ -26,11 +27,7 @@ const ToursItem = ({ tour }: { tour: TourType }) => {
alt="여행지 이미지"
/>
<div className="absolute right-[8px] top-[8px] z-10 w-[24px]">
<HeartIcon
size={24}
color={liked ? '#ff2167' : '#ffffff'}
fill={liked ? '#ff2167' : '#D7D7D7'}
/>
<Like liked={liked} id={id} />
</div>
</div>
<p className="headline1 mt-2 overflow-hidden text-clip whitespace-nowrap px-[2px] leading-normal">
Expand Down

0 comments on commit fdecd83

Please sign in to comment.