-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from FinalDoubleTen/FE-89--feat/Trips/TripsMap
계획 정보 소켓 연결
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { UserIcon } from '@components/common/icons/Icons'; | ||
import { socketContext } from '@hooks/useSocket'; | ||
import { useContext } from 'react'; | ||
|
||
const PlanSchedule = () => { | ||
const { tripInfo } = useContext(socketContext); | ||
const trip = tripInfo?.data; | ||
|
||
return ( | ||
<div className="my-5"> | ||
<div className="flex items-center justify-between"> | ||
<div className="flex items-center"> | ||
<div className="title1 mb-[10px] mr-1">{trip?.tripName}</div> | ||
<div className="flex items-center pb-[10px]"> | ||
<UserIcon size={20} fill="#888" color="#888" /> | ||
<span className="body4 pt-[1px] text-gray4"> | ||
{trip?.numberOfPeople} | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
<span className="body1 text-gray4"> | ||
{trip?.startDate} ~ {trip?.endDate} | ||
</span> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PlanSchedule; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters