From 3a9536c04e2c3b528e9e10cd71520c5df2c40515 Mon Sep 17 00:00:00 2001 From: Adrien Servel Date: Thu, 30 Jan 2025 16:24:48 +0100 Subject: [PATCH] [frontend] Fix QR code for OTP on dark mode that is not readable --- .../src/private/components/profile/ProfileOverview.jsx | 6 ------ .../opencti-front/src/public/components/OtpActivation.tsx | 6 ------ 2 files changed, 12 deletions(-) diff --git a/opencti-platform/opencti-front/src/private/components/profile/ProfileOverview.jsx b/opencti-platform/opencti-front/src/private/components/profile/ProfileOverview.jsx index d0310fd7e833..b053d414ab86 100644 --- a/opencti-platform/opencti-front/src/private/components/profile/ProfileOverview.jsx +++ b/opencti-platform/opencti-front/src/private/components/profile/ProfileOverview.jsx @@ -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(''); diff --git a/opencti-platform/opencti-front/src/public/components/OtpActivation.tsx b/opencti-platform/opencti-front/src/public/components/OtpActivation.tsx index fdeefe5d2380..e690f4c31138 100644 --- a/opencti-platform/opencti-front/src/public/components/OtpActivation.tsx +++ b/opencti-platform/opencti-front/src/public/components/OtpActivation.tsx @@ -70,12 +70,6 @@ const Otp: FunctionComponent = ({ 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('');