From c26a7f5f78aeb891eff3b0a1bcc34911e1c6b80c Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Wed, 18 Dec 2024 13:52:25 +0100 Subject: [PATCH 1/4] Update DisplayNamePage to use autoCapitalize for first and last name inputs --- src/pages/settings/Profile/DisplayNamePage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/settings/Profile/DisplayNamePage.tsx b/src/pages/settings/Profile/DisplayNamePage.tsx index 10eeeaf06bf5..767b69bbba0c 100644 --- a/src/pages/settings/Profile/DisplayNamePage.tsx +++ b/src/pages/settings/Profile/DisplayNamePage.tsx @@ -98,7 +98,7 @@ function DisplayNamePage({currentUserPersonalDetails}: DisplayNamePageProps) { role={CONST.ROLE.PRESENTATION} defaultValue={currentUserDetails.firstName ?? ''} spellCheck={false} - isMarkdownEnabled + autoCapitalize="words" /> @@ -111,7 +111,7 @@ function DisplayNamePage({currentUserPersonalDetails}: DisplayNamePageProps) { role={CONST.ROLE.PRESENTATION} defaultValue={currentUserDetails.lastName ?? ''} spellCheck={false} - isMarkdownEnabled + autoCapitalize="words" /> From 3ec344e3ee26dce68acb55d6f7f745989f5221c1 Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Thu, 19 Dec 2024 13:03:31 +0100 Subject: [PATCH 2/4] Enable Markdown support for first and last name fields in DisplayNamePage --- src/pages/settings/Profile/DisplayNamePage.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/settings/Profile/DisplayNamePage.tsx b/src/pages/settings/Profile/DisplayNamePage.tsx index 767b69bbba0c..5bb214f5377b 100644 --- a/src/pages/settings/Profile/DisplayNamePage.tsx +++ b/src/pages/settings/Profile/DisplayNamePage.tsx @@ -98,6 +98,7 @@ function DisplayNamePage({currentUserPersonalDetails}: DisplayNamePageProps) { role={CONST.ROLE.PRESENTATION} defaultValue={currentUserDetails.firstName ?? ''} spellCheck={false} + isMarkdownEnabled autoCapitalize="words" /> @@ -111,6 +112,7 @@ function DisplayNamePage({currentUserPersonalDetails}: DisplayNamePageProps) { role={CONST.ROLE.PRESENTATION} defaultValue={currentUserDetails.lastName ?? ''} spellCheck={false} + isMarkdownEnabled autoCapitalize="words" /> From 1a18f99c654d65339e48ada3bd869505f89bde89 Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Thu, 19 Dec 2024 16:18:22 +0100 Subject: [PATCH 3/4] Remove Markdown support from first and last name fields in DisplayNamePage --- src/pages/settings/Profile/DisplayNamePage.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pages/settings/Profile/DisplayNamePage.tsx b/src/pages/settings/Profile/DisplayNamePage.tsx index 5bb214f5377b..767b69bbba0c 100644 --- a/src/pages/settings/Profile/DisplayNamePage.tsx +++ b/src/pages/settings/Profile/DisplayNamePage.tsx @@ -98,7 +98,6 @@ function DisplayNamePage({currentUserPersonalDetails}: DisplayNamePageProps) { role={CONST.ROLE.PRESENTATION} defaultValue={currentUserDetails.firstName ?? ''} spellCheck={false} - isMarkdownEnabled autoCapitalize="words" /> @@ -112,7 +111,6 @@ function DisplayNamePage({currentUserPersonalDetails}: DisplayNamePageProps) { role={CONST.ROLE.PRESENTATION} defaultValue={currentUserDetails.lastName ?? ''} spellCheck={false} - isMarkdownEnabled autoCapitalize="words" /> From f7dc0516907fb7fd877626f651b5991face8062d Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Fri, 20 Dec 2024 10:26:37 +0100 Subject: [PATCH 4/4] Add autoCapitalize attribute to LegalNamePage input fields --- src/pages/settings/Profile/PersonalDetails/LegalNamePage.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/settings/Profile/PersonalDetails/LegalNamePage.tsx b/src/pages/settings/Profile/PersonalDetails/LegalNamePage.tsx index bb7d3024a0c2..ecb128af497c 100644 --- a/src/pages/settings/Profile/PersonalDetails/LegalNamePage.tsx +++ b/src/pages/settings/Profile/PersonalDetails/LegalNamePage.tsx @@ -109,6 +109,7 @@ function LegalNamePage() { role={CONST.ROLE.PRESENTATION} defaultValue={legalFirstName} spellCheck={false} + autoCapitalize="words" /> @@ -121,6 +122,7 @@ function LegalNamePage() { role={CONST.ROLE.PRESENTATION} defaultValue={legalLastName} spellCheck={false} + autoCapitalize="words" />