Skip to content

Commit

Permalink
[frontend] Fix QR code for OTP on dark mode that is not readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kedae committed Jan 30, 2025
1 parent cef1be3 commit 3a9536c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,6 @@ const Otp = ({ closeFunction, secret, uri }) => {
useEffect(() => {
qrcode.toDataURL(
uri,
{
color: {
dark: theme.palette.mode === 'dark' ? '#ffffff' : '#000000',
light: '#0000', // Transparent background
},
},
(err, imageUrl) => {
if (err) {
setOtpQrImage('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ const Otp: FunctionComponent<OtpProps> = ({ secret, uri }) => {
useEffect(() => {
qrcode.toDataURL(
uri,
{
color: {
dark: `${theme.palette.mode}` === 'dark' ? '#ffffff' : '#000000',
light: '#0000', // Transparent background
},
},
(err: Error | null | undefined, imageUrl: string) => {
if (err) {
setOtpQrImage('');
Expand Down

0 comments on commit 3a9536c

Please sign in to comment.