-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat : HOST, GUEST 역할 분리 * feat : HOST, GUEST 역할 분리 * feat : HOST, GUEST 기능 분리 * fix : 숙소 등록, 수정 안되는 문제 해결 * feat : 숙소 매출 현황 페이지에 숙소 상세 정보 표시 * design : 숙소 매출 현황 페이지에 숙소 상세 정보 디자인 변경1 * design : 숙소 매출 현황 페이지에 숙소 상세 정보 디자인 변경1 --------- Co-authored-by: kyumho kim <[email protected]>
- Loading branch information
Showing
6 changed files
with
261 additions
and
213 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
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 |
---|---|---|
@@ -1,11 +1,57 @@ | ||
'use client' | ||
|
||
import { useHotelDetail } from '@/hooks/useHotel' | ||
import { | ||
Card, | ||
CardHeader, | ||
CardBody, | ||
Image, | ||
CardFooter, | ||
Divider, | ||
} from '@nextui-org/react' | ||
import React from 'react' | ||
|
||
export default function HotelSales({ id }) { | ||
const { hotel, isHotelLoading, isFetching, isError, error } = | ||
useHotelDetail(id) | ||
|
||
if (isHotelLoading) return <div></div> | ||
|
||
console.log(hotel) | ||
|
||
return ( | ||
<div className='mt-32 min-h-[60vh] text-center'> | ||
<div>{id}번 호텔 매출 현황 페이지</div> | ||
<div className='grid grid-cols-4'> | ||
<Card className='col-span-1 py-4 bg-gray-100'> | ||
<CardHeader className='pb-0 pt-2 px-4 flex-col items-start'> | ||
<p className='text-tiny uppercase font-bold'>{hotel?.address}</p> | ||
<small className='text-default-500'>{hotel?.addressDetail}</small> | ||
<h4 className='font-bold text-large'>{hotel?.nickname}</h4> | ||
</CardHeader> | ||
<CardBody className='overflow-visible py-2'> | ||
<Image | ||
alt='Card background' | ||
className='object-cover rounded-xl' | ||
src={hotel?.imagesResponse.imageUrl[0]} | ||
width={270} | ||
/> | ||
</CardBody> | ||
<Divider /> | ||
<CardFooter> | ||
<div className='flex flex-col text-start space-y-2'> | ||
<p>호스트 : {hotel?.host}</p> | ||
<p>하루 숙박비 : {hotel?.price}원</p> | ||
<p>숙소 유형 : {hotel?.hotelType}</p> | ||
<p>방 개수 : {hotel?.roomCnt}</p> | ||
<p>침대 개수 : {hotel?.bedCnt}</p> | ||
<p>화장실 개수 : {hotel?.bathroomCnt}</p> | ||
<p>최대 수용 인원: {hotel?.maxPeople}</p> | ||
<p>편의 시설 : {hotel.facility.join(', ')}</p> | ||
<p>소개 : {hotel.description}</p> | ||
</div> | ||
</CardFooter> | ||
</Card> | ||
</div> | ||
</div> | ||
) | ||
} |
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
Oops, something went wrong.