From 4ee4570373f5df60bda12ce71ba0517405c99cdc Mon Sep 17 00:00:00 2001 From: Simon Emanuelsson Date: Tue, 16 Apr 2024 12:59:58 +0200 Subject: [PATCH] fix: aria-label warnings for edit profile form --- app/[lang]/(live)/(protected)/my-pages/page.tsx | 1 - .../my-pages/profile/@communication/default.tsx | 3 --- .../my-pages/profile/@creditCards/default.tsx | 3 --- .../my-pages/profile/@membershipCard/default.tsx | 3 --- .../(protected)/my-pages/profile/@password/default.tsx | 3 --- .../(protected)/my-pages/profile/@wishes/default.tsx | 3 --- components/MyProfile/Profile/Edit/Form/Content.tsx | 4 ++++ components/TempDesignSystem/Form/Country/index.tsx | 9 +++++++-- components/TempDesignSystem/Form/Date/Select/index.tsx | 4 +++- components/TempDesignSystem/Form/Date/index.tsx | 4 ++++ components/TempDesignSystem/Form/Input/index.tsx | 2 ++ 11 files changed, 20 insertions(+), 19 deletions(-) delete mode 100644 app/[lang]/(live)/(protected)/my-pages/profile/@communication/default.tsx delete mode 100644 app/[lang]/(live)/(protected)/my-pages/profile/@creditCards/default.tsx delete mode 100644 app/[lang]/(live)/(protected)/my-pages/profile/@membershipCard/default.tsx delete mode 100644 app/[lang]/(live)/(protected)/my-pages/profile/@password/default.tsx delete mode 100644 app/[lang]/(live)/(protected)/my-pages/profile/@wishes/default.tsx diff --git a/app/[lang]/(live)/(protected)/my-pages/page.tsx b/app/[lang]/(live)/(protected)/my-pages/page.tsx index 46532739e..72c90152b 100644 --- a/app/[lang]/(live)/(protected)/my-pages/page.tsx +++ b/app/[lang]/(live)/(protected)/my-pages/page.tsx @@ -2,7 +2,6 @@ import { redirect } from "next/navigation" import { overview } from "@/constants/routes/myPages" -import type { Lang } from "@/constants/languages" import type { LangParams, PageArgs } from "@/types/params" export default function MyPages({ params }: PageArgs) { diff --git a/app/[lang]/(live)/(protected)/my-pages/profile/@communication/default.tsx b/app/[lang]/(live)/(protected)/my-pages/profile/@communication/default.tsx deleted file mode 100644 index 86b9e9a38..000000000 --- a/app/[lang]/(live)/(protected)/my-pages/profile/@communication/default.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default function Default() { - return null -} diff --git a/app/[lang]/(live)/(protected)/my-pages/profile/@creditCards/default.tsx b/app/[lang]/(live)/(protected)/my-pages/profile/@creditCards/default.tsx deleted file mode 100644 index 86b9e9a38..000000000 --- a/app/[lang]/(live)/(protected)/my-pages/profile/@creditCards/default.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default function Default() { - return null -} diff --git a/app/[lang]/(live)/(protected)/my-pages/profile/@membershipCard/default.tsx b/app/[lang]/(live)/(protected)/my-pages/profile/@membershipCard/default.tsx deleted file mode 100644 index 86b9e9a38..000000000 --- a/app/[lang]/(live)/(protected)/my-pages/profile/@membershipCard/default.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default function Default() { - return null -} diff --git a/app/[lang]/(live)/(protected)/my-pages/profile/@password/default.tsx b/app/[lang]/(live)/(protected)/my-pages/profile/@password/default.tsx deleted file mode 100644 index 86b9e9a38..000000000 --- a/app/[lang]/(live)/(protected)/my-pages/profile/@password/default.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default function Default() { - return null -} diff --git a/app/[lang]/(live)/(protected)/my-pages/profile/@wishes/default.tsx b/app/[lang]/(live)/(protected)/my-pages/profile/@wishes/default.tsx deleted file mode 100644 index 86b9e9a38..000000000 --- a/app/[lang]/(live)/(protected)/my-pages/profile/@wishes/default.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default function Default() { - return null -} diff --git a/components/MyProfile/Profile/Edit/Form/Content.tsx b/components/MyProfile/Profile/Edit/Form/Content.tsx index cda2e65e7..62608ae8b 100644 --- a/components/MyProfile/Profile/Edit/Form/Content.tsx +++ b/components/MyProfile/Profile/Edit/Form/Content.tsx @@ -58,6 +58,7 @@ export default function FormContent({ control }: EditFormContentProps) { *{_("Email")} *{_("Address")} *{_("City/State")} *{_("Zip code")}
- + @@ -91,7 +96,7 @@ export default function CountrySelect({ */ UNSTABLE_portalContainer={divElement ?? undefined} > - + {countries.map((country, idx) => ( - + {items.map((item) => (