mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
feat(toolkit): add description and tooltip for formItems (#3129)
This commit is contained in:
parent
bbb2f85993
commit
69ac13e3aa
2 changed files with 7 additions and 0 deletions
5
.changeset/curly-apes-tease.md
Normal file
5
.changeset/curly-apes-tease.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"@logto/connector-kit": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add description and tooltip for connector config's formItems.
|
|
@ -111,6 +111,8 @@ const baseConfigFormItem = {
|
||||||
showConditions: z
|
showConditions: z
|
||||||
.array(z.object({ targetKey: z.string(), expectValue: z.unknown().optional() }))
|
.array(z.object({ targetKey: z.string(), expectValue: z.unknown().optional() }))
|
||||||
.optional(),
|
.optional(),
|
||||||
|
description: z.string().optional(),
|
||||||
|
tooltip: z.string().optional(),
|
||||||
};
|
};
|
||||||
|
|
||||||
const connectorConfigFormItemGuard = z.discriminatedUnion('type', [
|
const connectorConfigFormItemGuard = z.discriminatedUnion('type', [
|
||||||
|
|
Loading…
Reference in a new issue