Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3 [Fix} booking 예외 처리중 #5

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}