0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

feat(toolkit): add description and tooltip for formItems (#3129)

This commit is contained in:
wangsijie 2023-02-21 11:27:52 +08:00 committed by GitHub
parent bbb2f85993
commit 69ac13e3aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"@logto/connector-kit": patch
---
Add description and tooltip for connector config's formItems.

View file

@ -111,6 +111,8 @@ const baseConfigFormItem = {
showConditions: z
.array(z.object({ targetKey: z.string(), expectValue: z.unknown().optional() }))
.optional(),
description: z.string().optional(),
tooltip: z.string().optional(),
};
const connectorConfigFormItemGuard = z.discriminatedUnion('type', [