diff --git a/src/pages/Ticket/buy.tsx b/src/pages/Ticket/buy.tsx
index 9edcaac..2e42431 100644
--- a/src/pages/Ticket/buy.tsx
+++ b/src/pages/Ticket/buy.tsx
@@ -119,6 +119,7 @@ const BuyTicket = ({ onPaymentCompleted }: Props) => {
{Object.entries(tickets).map(([k, v]) => (
{t(v.name)}
+
티켓 판매 시작: 2024년 7월 15일 14:00 부터
{v.tickets.map((ticket) => (
diff --git a/src/pages/Ticket/index.tsx b/src/pages/Ticket/index.tsx
index f4d58b0..2e339ca 100644
--- a/src/pages/Ticket/index.tsx
+++ b/src/pages/Ticket/index.tsx
@@ -1,6 +1,8 @@
import React, { useState } from "react";
import BuyTicket from "./buy";
import PaymentResult from "./paymentResult";
+import { useNavigate } from "react-router";
+import { Navigate } from "react-router-dom";
type State = {
view: "LIST" | "PAYMENT_RESULT";
@@ -8,9 +10,16 @@ type State = {
const TicketPage = () => {
const [view, setView] = useState("LIST");
+ const navigate = useNavigate();
switch (view) {
case "LIST":
+
+ if (!localStorage.getItem("id")) {
+ alert("로그인이 필요합니다.");
+ return ;
+ }
+
return (
{