Skip to content

Commit

Permalink
set qr code to only light
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Oct 25, 2024
1 parent c0b4cf9 commit 6425356
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@
height: 100%;
width: 100%;
}

.qr-code {
color-scheme: only light;
}
2 changes: 1 addition & 1 deletion frontend/src/routes/student_payment_view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function StudentPaymentPage() {
alignItems: "center",
}}
>
<QRCode value={token.transaction_id} />
<QRCode value={token.transaction_id} className="qr-code"/>
</Container>
</Stack>

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/student_topup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function StudentTopupPage() {
alignItems: "center",
}}
>
<QRCode value={token.topup_id} />
<QRCode value={token.topup_id} className="qr-code" />
</Container>
<Typography variant="h6">How do I top-up?</Typography>
<Typography variant="body1">
Expand Down

0 comments on commit 6425356

Please sign in to comment.