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:
parent
347cd3b6b7
commit
ee1947ac4d
2 changed files with 16 additions and 0 deletions
5
.changeset/dry-candles-design.md
Normal file
5
.changeset/dry-candles-design.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@logto/console": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
support entering name while creating a user
|
|
@ -191,6 +191,17 @@ function CreateForm({ onClose, onCreate }: Props) {
|
||||||
error={errors.username?.message ?? Boolean(missingIdentifierError)}
|
error={errors.username?.message ?? Boolean(missingIdentifierError)}
|
||||||
/>
|
/>
|
||||||
</FormField>
|
</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>
|
</form>
|
||||||
{missingIdentifierError && <div className={styles.error}>{missingIdentifierError}</div>}
|
{missingIdentifierError && <div className={styles.error}>{missingIdentifierError}</div>}
|
||||||
</ModalLayout>
|
</ModalLayout>
|
||||||
|
|
Loading…
Reference in a new issue