mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: max length validation added in user name inputs (#3774)
This commit is contained in:
parent
849d3a66c1
commit
50cbb2f002
@ -190,6 +190,7 @@ export const UserDetails: React.FC<Props> = observer((props) => {
|
||||
hasError={Boolean(errors.first_name)}
|
||||
placeholder="Enter your full name..."
|
||||
className="w-full border-onboarding-border-100 focus:border-custom-primary-100"
|
||||
maxLength={24}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
@ -250,6 +250,7 @@ const ProfileSettingsPage: NextPageWithLayout = observer(() => {
|
||||
hasError={Boolean(errors.first_name)}
|
||||
placeholder="Enter your first name"
|
||||
className={`w-full rounded-md ${errors.first_name ? "border-red-500" : ""}`}
|
||||
maxLength={24}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
@ -273,6 +274,7 @@ const ProfileSettingsPage: NextPageWithLayout = observer(() => {
|
||||
hasError={Boolean(errors.last_name)}
|
||||
placeholder="Enter your last name"
|
||||
className="w-full rounded-md"
|
||||
maxLength={24}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
@ -369,6 +371,7 @@ const ProfileSettingsPage: NextPageWithLayout = observer(() => {
|
||||
hasError={Boolean(errors.display_name)}
|
||||
placeholder="Enter your display name"
|
||||
className={`w-full ${errors.display_name ? "border-red-500" : ""}`}
|
||||
maxLength={24}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user