0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

refactor(console): update branding area (#1374)

This commit is contained in:
Gao Sun 2022-07-03 13:18:15 +08:00 committed by GitHub
parent e91ebc9a80
commit 6d5182fcb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View file

@ -66,13 +66,15 @@ const BrandingForm = () => {
/>
</FormField>
)}
<FormField isRequired={isSloganRequired} title="admin_console.sign_in_exp.branding.slogan">
<TextInput
{...register('branding.slogan', { required: isSloganRequired })}
hasError={Boolean(errors.branding?.slogan)}
placeholder={t('sign_in_exp.branding.slogan_placeholder')}
/>
</FormField>
{isSloganRequired && (
<FormField isRequired={isSloganRequired} title="admin_console.sign_in_exp.branding.slogan">
<TextInput
{...register('branding.slogan', { required: isSloganRequired })}
hasError={Boolean(errors.branding?.slogan)}
placeholder={t('sign_in_exp.branding.slogan_placeholder')}
/>
</FormField>
)}
</>
);
};

View file

@ -328,8 +328,8 @@ const translation = {
title: '品牌定制区',
ui_style: '样式',
styles: {
logo_slogan: 'App logo 和标语',
logo: '仅有Logo',
logo_slogan: 'Logo 和标语',
logo: '仅有 Logo',
},
logo_image_url: 'Logo 图片 URL',
logo_image_url_placeholder: 'https://your.cdn.domain/logo.png',