Skip to content

Commit

Permalink
only scan qr codes
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Oct 22, 2024
1 parent b0fba09 commit a639205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/routes/admin_view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function AdminPage() {
return;
}
setTopup(resp);
}} classNames={{container: "scanner-container"}} />}
}} formats={["qr_code"]} classNames={{container: "scanner-container"}} />}

<Divider variant="middle" />

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/booth_main_view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function BoothMainPage() {
<Button variant="contained" size="large" startIcon={!showScanner && <QrCodeScannerIcon />} onClick={() => setShowScanner((s) => !s)}>{showScanner ? "Stop Scanning" : "Scan Student's QR Code"}</Button>
{showScanner && <Scanner onScan={(code) => {
navigate("/booth/payment", {state: {transId: code[0].rawValue}})
}} classNames={{container: "scanner-container"}} />}
}} formats={["qr_code"]} classNames={{container: "scanner-container"}} />}
</Stack>
</Container>
);
Expand Down

0 comments on commit a639205

Please sign in to comment.