From e2d047fcf0e80371101e2623f0b9a93316eb2d63 Mon Sep 17 00:00:00 2001 From: Eunju Huss Date: Tue, 10 Dec 2024 09:10:06 +0100 Subject: [PATCH 1/7] Remove extra div inside article --- .../Dashboard/ChangePasswordDisplay.tsx | 36 +++++++++---------- src/components/Dashboard/Language.tsx | 10 +++--- 2 files changed, 21 insertions(+), 25 deletions(-) diff --git a/src/components/Dashboard/ChangePasswordDisplay.tsx b/src/components/Dashboard/ChangePasswordDisplay.tsx index a83cd9e4d..01361c958 100644 --- a/src/components/Dashboard/ChangePasswordDisplay.tsx +++ b/src/components/Dashboard/ChangePasswordDisplay.tsx @@ -16,25 +16,23 @@ function ChangePasswordDisplay() { } return (
-
-

- -

-

- -

- - - -
+

+ +

+

+ +

+ + +
); } diff --git a/src/components/Dashboard/Language.tsx b/src/components/Dashboard/Language.tsx index e0ebd951f..e662b7517 100644 --- a/src/components/Dashboard/Language.tsx +++ b/src/components/Dashboard/Language.tsx @@ -36,12 +36,10 @@ export function LanguagePreference() { } return ( -
-
-

- -

-
+
+

+ +

Date: Tue, 10 Dec 2024 09:39:38 +0100 Subject: [PATCH 2/7] Remove ID for article --- .../Common/MultiFactorAuthentication.tsx | 141 +++++++++--------- src/components/Dashboard/AccountLinking.tsx | 2 +- src/components/Dashboard/DeleteAccount.tsx | 2 +- src/components/Dashboard/Emails.tsx | 2 +- src/components/Dashboard/Phones.tsx | 2 +- src/components/Login/NewDevice.tsx | 42 +++--- 6 files changed, 94 insertions(+), 97 deletions(-) diff --git a/src/components/Common/MultiFactorAuthentication.tsx b/src/components/Common/MultiFactorAuthentication.tsx index 70d481481..0373ea978 100644 --- a/src/components/Common/MultiFactorAuthentication.tsx +++ b/src/components/Common/MultiFactorAuthentication.tsx @@ -164,85 +164,84 @@ export function MultiFactorAuthentication(): React.ReactElement | null { if (!isPlatformAuthLoaded) return null; return ( -

-
-

- -

-

- +

+ +

+

+ -

-

- - - - ), - }} - /> -

+ /> +

+

+ + + + ), + }} + /> +

-
- {Boolean(tokens.length) && } - - {!tokens.length &&
} - - - - - -
-
- handleRegisterWebauthn("platform")} - disabled={!isPlatformAuthenticatorAvailable || isRegisteringAuthenticator} - > - - -

+

+ {Boolean(tokens.length) && } + + {!tokens.length &&
} + + + + + +
+
+ handleRegisterWebauthn("platform")} + disabled={!isPlatformAuthenticatorAvailable || isRegisteringAuthenticator} + > + + +

+ +

+ {!isPlatformAuthenticatorAvailable && ( +

- {!isPlatformAuthenticatorAvailable && ( -

- -

- )} -
-
- handleRegisterWebauthn("cross-platform")} - disabled={isRegisteringAuthenticator} - > - - -

- -

-
+ )} +
+
+ handleRegisterWebauthn("cross-platform")} + disabled={isRegisteringAuthenticator} + > + + +

+ +

+ +

diff --git a/src/components/Dashboard/DeleteAccount.tsx b/src/components/Dashboard/DeleteAccount.tsx index 3cbf68c72..ca0da1c5d 100644 --- a/src/components/Dashboard/DeleteAccount.tsx +++ b/src/components/Dashboard/DeleteAccount.tsx @@ -18,7 +18,7 @@ export default function DeleteAccount(): JSX.Element | null { } return ( -
+

diff --git a/src/components/Dashboard/Emails.tsx b/src/components/Dashboard/Emails.tsx index 92e172bf4..f07706b26 100644 --- a/src/components/Dashboard/Emails.tsx +++ b/src/components/Dashboard/Emails.tsx @@ -109,7 +109,7 @@ function Emails() { } return ( -
+

diff --git a/src/components/Dashboard/Phones.tsx b/src/components/Dashboard/Phones.tsx index 642c7d2b3..ec0fda4cb 100644 --- a/src/components/Dashboard/Phones.tsx +++ b/src/components/Dashboard/Phones.tsx @@ -193,7 +193,7 @@ function Phones() { } return ( -
+

diff --git a/src/components/Login/NewDevice.tsx b/src/components/Login/NewDevice.tsx index 78a139e34..64f73de06 100644 --- a/src/components/Login/NewDevice.tsx +++ b/src/components/Login/NewDevice.tsx @@ -89,29 +89,27 @@ export function RememberMeCheckbox(): JSX.Element | null { return ( -
- + {!switchChecked && ( +

+ -

- - {!switchChecked && ( -

- -

- )} -
+

+ )}
); } From 6dbec76913188dbc33087da75255cb0b41a0aed1 Mon Sep 17 00:00:00 2001 From: Eunju Huss Date: Tue, 10 Dec 2024 09:48:10 +0100 Subject: [PATCH 3/7] Clean up --- src/styles/_Emails.scss | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/styles/_Emails.scss b/src/styles/_Emails.scss index f201ee6b8..c3ba7a06a 100644 --- a/src/styles/_Emails.scss +++ b/src/styles/_Emails.scss @@ -1,13 +1,3 @@ -// #uniqueId-container { -// margin-top: 1rem; -// } - -// .phoneview-form-container, -// #delete-account-container, -// #change-password-container { -// margin-top: 2rem; -// } - #suggested-password { display: table; padding: 0.125rem 0.5rem; From 7a3e306d10fb448471e98134e94b78449764aed9 Mon Sep 17 00:00:00 2001 From: Eunju Huss Date: Tue, 10 Dec 2024 10:00:32 +0100 Subject: [PATCH 4/7] Remove ID --- src/components/Common/HeaderNav.tsx | 2 +- src/components/Common/MultiFactorAuthentication.tsx | 2 +- src/components/Common/NinDisplay.tsx | 2 +- src/components/Dashboard/Identity.tsx | 6 +++--- src/components/Dashboard/Ladok.tsx | 2 +- src/components/ResetPassword/EmailLinkSent.tsx | 2 +- src/styles/_Nins.scss | 5 ----- 7 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/components/Common/HeaderNav.tsx b/src/components/Common/HeaderNav.tsx index c6972c96f..88ee72ae7 100644 --- a/src/components/Common/HeaderNav.tsx +++ b/src/components/Common/HeaderNav.tsx @@ -71,7 +71,7 @@ export function HeaderNav(props: HeaderNavProps): JSX.Element { useCloseMenuClickOutside(wrapperRef, () => setOpenMenu(false)); return ( -