Skip to content

Commit

Permalink
Merge pull request #5 from haedal-health/#3
Browse files Browse the repository at this point in the history
#3 [Fix} booking 예외 처리중
  • Loading branch information
DingX2 authored Aug 14, 2023
2 parents 2b429b5 + 27a618c commit 0751b82
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/components/PassDetailContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export default function PassDetailContainer({ bookingData, pass }) {
setIsExpanded(!isExpanded);
};

// console.log("check pass");
// console.log(pass);
console.log("들어온 bookingData");
console.log(bookingData);

Expand Down Expand Up @@ -73,17 +71,19 @@ export default function PassDetailContainer({ bookingData, pass }) {
: "달력으로 입력 필요"}
</span>
</li>
{bookingData && bookingData.startTime && bookingData.endedTime && (
{
<li>
<span className="item-title">예약 시간</span>
<span>
{formatDateTimeRange(
bookingData.startTime,
bookingData.endedTime
)}
{bookingData && bookingData.startTime && bookingData.endedTime
? formatDateTimeRange(
bookingData.startTime,
bookingData.endedTime
)
: "입력 필요"}
</span>
</li>
)}
}
{bookingData && bookingData.teacher && (
<li>
<span className="item-title">담당 선생님</span>
Expand Down
1 change: 0 additions & 1 deletion src/components/ReservationDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export default function ReservationDetails() {

<button className="ReservationDetails-title-btn-groups"> 초기화</button>
</div>
{/* 모두 입력하면 자동으로 추가되게 만들어야함 */}
{bookingDataAry !== null && (
<div>
<PassDetailContainer bookingData={bookingDataAry[0]} />
Expand Down
3 changes: 1 addition & 2 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ $page-padding: 100px;
display: flex;
position: relative;
height: 5vh;
//background-color: #5DBAFF;
width: 100%;
justify-content: flex-end; /* Footer를 아래로 정렬하기 위해 flex-end로 설정 */
justify-content: flex-end;
}

0 comments on commit 0751b82

Please sign in to comment.