0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00

fix(console): add displayName input placeholder (#5282)

add displayName input placeholder
This commit is contained in:
simeng-li 2024-01-24 10:47:32 +08:00 committed by GitHub
parent e86aab2a5e
commit 0986876076
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,7 +106,7 @@ function Branding({ application }: Props) {
description="application_details.branding.description"
>
<FormField title="application_details.branding.display_name">
<TextInput {...register('displayName')} />
<TextInput {...register('displayName')} placeholder={application.name} />
</FormField>
{isUserAssetsServiceReady && (
<FormField title="application_details.branding.display_logo">
@ -121,6 +121,7 @@ function Branding({ application }: Props) {
validate: (value) =>
!value || uriValidator(value) || t('errors.invalid_uri_format'),
})}
placeholder={t('sign_in_exp.branding.logo_image_url_placeholder')}
error={errors.branding?.logoUrl?.message}
/>
</FormField>
@ -133,6 +134,7 @@ function Branding({ application }: Props) {
validate: (value) =>
!value || uriValidator(value) || t('errors.invalid_uri_format'),
})}
placeholder={t('sign_in_exp.branding.dark_logo_image_url_placeholder')}
error={errors.branding?.darkLogoUrl?.message}
/>
</FormField>