From f4890874d2e20d6105111369e82f74bc37c985fe Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Thu, 13 Oct 2022 12:30:42 -0400 Subject: [PATCH] Add hints to username field during registration --- app/soapbox/features/verification/registration.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/soapbox/features/verification/registration.tsx b/app/soapbox/features/verification/registration.tsx index a6f5749e8..7a7503d4a 100644 --- a/app/soapbox/features/verification/registration.tsx +++ b/app/soapbox/features/verification/registration.tsx @@ -20,6 +20,10 @@ const messages = defineMessages({ id: 'registrations.success', defaultMessage: 'Welcome to {siteTitle}!', }, + usernameHint: { + id: 'registrations.username.hint', + defaultMessage: 'May only contain A-Z, 0-9, and underscores', + }, usernameTaken: { id: 'registrations.unprocessable_entity', defaultMessage: 'This username has already been taken.', @@ -104,7 +108,7 @@ const Registration = () => {
- + { onChange={handleInputChange} required icon={require('@tabler/icons/at.svg')} + placeholder='LibertyForAll' />