From b27cb189b3b381cb31a5681e27d99b141298475a Mon Sep 17 00:00:00 2001 From: Lara REALI Date: Fri, 23 Jun 2023 18:45:59 +0200 Subject: [PATCH 1/2] Qrcode number without arrows --- containers/react/src/pages/QrCode.tsx | 14 +++++++------- containers/react/src/styles/App.css | 6 +++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/containers/react/src/pages/QrCode.tsx b/containers/react/src/pages/QrCode.tsx index 2dcca83f..4da2138a 100644 --- a/containers/react/src/pages/QrCode.tsx +++ b/containers/react/src/pages/QrCode.tsx @@ -85,7 +85,7 @@ function QrCode () { console.log("registered") // history.push('/login') - const path = 'http://' + process.env.REACT_APP_BASE_URL + '/'; + const path = 'http://' + process.env.REACT_APP_BASE_URL + '/'; window.history.pushState({}, '', path); window.location.reload(); @@ -96,7 +96,7 @@ function QrCode () { //alert ?? retry } // redirect('/test') - } + } catch(err){ console.log(err) } @@ -105,7 +105,7 @@ function QrCode () { const handleDesactivate = async () => { try { await api.post("/deleteOtp") - // const path = 'http://' + process.env.REACT_APP_BASE_URL + '/'; + // const path = 'http://' + process.env.REACT_APP_BASE_URL + '/'; // window.history.pushState({}, '', path); window.location.reload(); } catch(err) { @@ -148,7 +148,7 @@ function QrCode () {

Double Auth Validation

Double Auth

setCode(e.target.value)} /> @@ -179,4 +179,4 @@ function QrCode () { ) } -export default QrCode \ No newline at end of file +export default QrCode diff --git a/containers/react/src/styles/App.css b/containers/react/src/styles/App.css index d4d7c8c6..3053cc8d 100644 --- a/containers/react/src/styles/App.css +++ b/containers/react/src/styles/App.css @@ -5,7 +5,11 @@ background-color: black; height: 100%; } - +input.qr::-webkit-outer-spin-button, +input.qr::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} input.qr{ width: 20%; border-radius: 5px; From 4d98765009c2ce0ae62ec8d8001eb16bf0a3f59d Mon Sep 17 00:00:00 2001 From: Lara REALI Date: Fri, 23 Jun 2023 19:58:45 +0200 Subject: [PATCH 2/2] margin on leaderboard pic + auto input qr --- containers/react/src/styles/App.css | 2 +- containers/react/src/styles/Profile.css | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/containers/react/src/styles/App.css b/containers/react/src/styles/App.css index 3053cc8d..f724c01b 100644 --- a/containers/react/src/styles/App.css +++ b/containers/react/src/styles/App.css @@ -11,7 +11,7 @@ input.qr::-webkit-inner-spin-button { margin: 0; } input.qr{ - width: 20%; + width: auto; border-radius: 5px; background-color: rgb(0, 0, 0); margin : 1%; diff --git a/containers/react/src/styles/Profile.css b/containers/react/src/styles/Profile.css index 9749e86e..b60bade1 100644 --- a/containers/react/src/styles/Profile.css +++ b/containers/react/src/styles/Profile.css @@ -54,7 +54,7 @@ - + @@ -80,6 +80,7 @@ border-radius: 50%; border: thick; border-color: red; + margin-left: 10px; /* border-image: linear-gradient(90deg, #5843e4, #5a0760); */ /* margin-top: 20px; */ @@ -158,4 +159,4 @@ border: solid 0px #ccc; background-color: #000; border-radius: 3%; -} */ \ No newline at end of file +} */