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:
parent
ab65d895b5
commit
dde0ae1ae7
2 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
@use '@/scss/underscore' as _;
|
||||
|
||||
.description {
|
||||
color: var(--color-text-secondary);
|
||||
font: var(--font-body-2);
|
||||
margin-top: _.unit(0.5);
|
||||
}
|
|
@ -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>
|
||||
))}
|
||||
</>
|
||||
|
|
Loading…
Add table
Reference in a new issue