Skip to content

Commit

Permalink
feat: 내 티켓 없을 때 예매하러 가기 버튼 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Turtle-Hwan authored Dec 8, 2024
1 parent 480c852 commit 33bea69
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/pages/MyTicketListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import QRIcon from '../../assets/QRIcon_color.svg?react';
import TicketIcon from '../../assets/TicketIcon_nonc.svg?react';
import PersonIcon from '../../assets/PersonIcon.svg?react';
import { css } from '@emotion/react';
import MainButton from '../../common/components/MainButton';

export default function MyTicketListPage() {
const ticketList = useReservationStore((state) => state.purchasedTicketList);
Expand Down Expand Up @@ -53,9 +54,20 @@ export default function MyTicketListPage() {
margin: '50px 100px',
}}
>
<Typography variant="body1" cx={{ color: theme.colors.gray[4] }}>
<Typography
variant="body1"
cx={{ color: theme.colors.gray[4], wordBreak: 'keep-all' }}
>
예매한 티켓이 없습니다.
</Typography>
<MainButton
onClick={() => {
navigate({ to: '/booking' });
}}
cx={{ marginTop: '100px', wordBreak: 'keep-all' }}
>
티켓 예매하러 가기
</MainButton>
</div>
)}
{ticketList.map((ticket) => (
Expand Down

0 comments on commit 33bea69

Please sign in to comment.