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

fix(console): connector formItem add desc (#3212)

This commit is contained in:
Darcy Ye 2023-02-24 17:53:47 +08:00 committed by GitHub
parent ab65d895b5
commit dde0ae1ae7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,7 @@
@use '@/scss/underscore' as _;
.description {
color: var(--color-text-secondary);
font: var(--font-body-2);
margin-top: _.unit(0.5);
}

View file

@ -14,6 +14,7 @@ import Textarea from '@/components/Textarea';
import { jsonValidator } from '@/utils/validator';
import type { ConnectorFormType } from '../../types';
import * as styles from './ConfigForm.module.scss';
type Props = {
formItems: ConnectorConfigFormItem[];
@ -142,6 +143,9 @@ const ConfigForm = ({ formItems }: Props) => {
}
>
{renderFormItem(item)}
{Boolean(item.description) && (
<div className={styles.description}>{item.description}</div>
)}
</FormField>
))}
</>