File tree Expand file tree Collapse file tree
pages/dashboard/ui/ticket Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { useEffect , useRef , useState } from "react" ;
22import QrScanner from "qr-scanner" ;
33import { useTicketQrCodeValidate } from "../hooks/useOrderHook" ;
4+ import Button from "../../../../design-system/ui/Button" ;
45
56const QrScannerComponent = ( ) => {
67 const videoRef = useRef < HTMLVideoElement > ( null ) ;
@@ -71,24 +72,13 @@ const QrScannerComponent = () => {
7172
7273 return (
7374 < div className = "p-4" >
74- < h2 className = "text-xl font-bold mb-2" > QR 코드 스캔</ h2 >
7575 < video
7676 ref = { videoRef }
7777 className = "border rounded w-full max-w-md"
78- style = { { aspectRatio : "4 / 3 " } }
78+ style = { { aspectRatio : "3 / 4 " } }
7979 />
8080 { ! isScanning && (
81- < button
82- onClick = { handleStartScan }
83- className = "mt-4 px-4 py-2 bg-blue-600 text-white rounded"
84- >
85- 스캔 시작
86- </ button >
87- ) }
88- { scanResult && (
89- < p className = "mt-4 text-green-700 font-semibold" >
90- 스캔 완료
91- </ p >
81+ < Button label = "스캔하기" onClick = { handleStartScan } className = "w-full h-12 rounded-full mt-10 px-4 py-2" />
9282 ) }
9383 </ div >
9484 ) ;
Original file line number Diff line number Diff line change 11import QrScannerComponent from "../../../../features/ticket/ui/QrScanner" ;
2+ import DashboardLayout from "../../../../shared/ui/backgrounds/DashboardLayout" ;
23
34const CheckInPage = ( ) => {
45 return (
5- < div className = "max-w-screen-md mx-auto" >
6- < h1 className = "text-2xl font-bold mb-4" > 체크인 스캐너</ h1 >
7- < QrScannerComponent />
8- </ div >
6+ < DashboardLayout centerContent = "WOOACON 2024" >
7+ < div className = 'flex flex-col gap-2 mt-8 px-7' >
8+ < h1 className = "w-full text-center font-bold text-xl" > QR 코드 스캔</ h1 >
9+ < div className = "max-w-screen-md mx-auto" >
10+ < QrScannerComponent />
11+ </ div >
12+ </ div >
13+ </ DashboardLayout >
14+
915 ) ;
1016} ;
1117
You can’t perform that action at this time.
0 commit comments