0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(console): support entering name while creating a user (#6523)

This commit is contained in:
Gao Sun 2024-08-29 16:08:00 +08:00 committed by GitHub
parent 347cd3b6b7
commit ee1947ac4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"@logto/console": patch
---
support entering name while creating a user

View file

@ -191,6 +191,17 @@ function CreateForm({ onClose, onCreate }: Props) {
error={errors.username?.message ?? Boolean(missingIdentifierError)}
/>
</FormField>
<FormField title="user_details.field_name">
<TextInput
{...register('name', {
onChange: () => {
revalidateForm();
},
})}
placeholder={t('users.placeholder_name')}
error={errors.name?.message ?? Boolean(missingIdentifierError)}
/>
</FormField>
</form>
{missingIdentifierError && <div className={styles.error}>{missingIdentifierError}</div>}
</ModalLayout>