Skip to content

Commit

Permalink
feat: 조회 API 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
sinji2102 committed Nov 25, 2024
1 parent 815a405 commit e292be6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/pages/ticketholderlist/TicketHolderList.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const ManageCardContainer = styled.section`
`;

export const FooterButtonWrapper = styled.div`
position: sticky;
position: fixed;
bottom: 0;
z-index: 1;
display: flex;
Expand Down
5 changes: 2 additions & 3 deletions src/pages/ticketholderlist/TicketHolderList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ const TicketHolderList = () => {

const { performanceId } = useParams();

// const { data, isLoading, refetch } = useTicketRetrive({ performanceId: Number(performanceId) });
const { isLoading, refetch } = useTicketRetrive({ performanceId: Number(performanceId) });
const { data, isLoading, refetch } = useTicketRetrive({ performanceId: Number(performanceId) });

const actions = {
PAYMENT: {
Expand Down Expand Up @@ -303,7 +302,7 @@ const TicketHolderList = () => {
name={item.bookerName}
phoneNumber={item.bookerPhoneNumber}
ticketCount={item.purchaseTicketCount}
scheduleId={item.scheduleId}
scheduleNumber={convertingNumber(item.scheduleNumber)}
date={formattedDate}
status={bookingStatus}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface ManagerCardContainerProps {
name: string;
phoneNumber: string;
ticketCount: number;
scheduleId: number;
scheduleNumber: number;
date: string;
status: string;
}
Expand All @@ -15,7 +15,7 @@ export default function ManageCardContainer({
name,
phoneNumber,
ticketCount,
scheduleId,
scheduleNumber,
date,
status,
}: ManagerCardContainerProps) {
Expand All @@ -27,7 +27,7 @@ export default function ManageCardContainer({
{name} ({phoneNumber})
</S.InfoText>
<S.InfoText $status={status}>
{scheduleId}회차 / {ticketCount}
{scheduleNumber}회차 / {ticketCount}
</S.InfoText>
<S.DateText $status={status}>{date}</S.DateText>
</S.TextContainer>
Expand Down

0 comments on commit e292be6

Please sign in to comment.