Skip to content

Commit

Permalink
Merge pull request #185 from FinalDoubleTen/FE-87--feat/Trips/addPlace
Browse files Browse the repository at this point in the history
Chore: 여졍페이지 충돌 해결
  • Loading branch information
LeHiHo authored Jan 17, 2024
2 parents ccc827a + dfe8e1c commit 36d9547
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/components/Plan/PlanItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ const PlanItem = (date: any) => {
/>
</div>
</div>
<div className="flex h-8 w-[46px] cursor-pointer items-center justify-center gap-2 rounded-lg bg-[#f0f0f0] p-2 text-sm font-medium text-gray4">
<button className="flex h-8 w-[46px] cursor-pointer items-center justify-center gap-2 rounded-lg bg-[#f0f0f0] p-2 text-sm font-medium text-gray4">
편집
</div>
</button>
</div>

<div className="flex flex-col gap-[5px]">
Expand Down
1 change: 0 additions & 1 deletion src/components/Plan/TripMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const TripMap = ({ paths }: { paths: Paths[] }) => {
width: '100%',
height: '180px',
marginTop: '15px',
marginBottom: '15px',
transition: 'height 0.3s ease-in-out',
};

Expand Down
3 changes: 0 additions & 3 deletions src/components/Trip/TripInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ const TripInfo = () => {
</span>
</div>
</div>
<button className="body4 rounded-[8px] bg-[#F0F0F0] px-[10px] py-[8px] text-gray4">
편집
</button>
</div>
<span className="body1 text-gray4">
{trip?.startDate} ~ {trip?.endDate}
Expand Down
5 changes: 0 additions & 5 deletions src/hooks/useSocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,9 @@ export const useSocket = (tripId: string, visitDate: string) => {
}
});

console.log('sub외부', visitDate);

subItem(tripId, visitDate, (res) => {
console.log('sub내부', visitDate);
if (res) {
setTripItem(res);
console.log('상태변경실행');
}
});

Expand All @@ -79,7 +75,6 @@ export const useSocket = (tripId: string, visitDate: string) => {

if (socketCallback) {
socketCallback();
console.log('소켓커넥트내부', socketCallback);
}
};

Expand Down

0 comments on commit 36d9547

Please sign in to comment.