Skip to content

Commit b2dcf3f

Browse files
iamfaranraheeliftikhar5
authored andcommitted
add docs button in chat component
1 parent ac38c66 commit b2dcf3f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

client/packages/lowcoder/src/comps/comps/chatComp/chatPropertyView.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// client/packages/lowcoder/src/comps/comps/chatComp/chatPropertyView.tsx
22

33
import React, { useMemo } from "react";
4-
import { Section, sectionNames } from "lowcoder-design";
4+
import { Section, sectionNames, DocLink } from "lowcoder-design";
55
import { placeholderPropertyView } from "../../utils/propertyUtils";
66

77
// ============================================================================
@@ -13,6 +13,17 @@ export const ChatPropertyView = React.memo((props: any) => {
1313

1414
return useMemo(() => (
1515
<>
16+
{/* Help & Documentation - Outside of Section */}
17+
<div style={{ padding: "8px 16px", marginBottom: "16px", borderBottom: "1px solid #f0f0f0" }}>
18+
<DocLink
19+
style={{ marginTop: 8 }}
20+
href="https://docs.lowcoder.cloud/lowcoder-documentation"
21+
title="Open Lowcoder Documentation"
22+
>
23+
📖 View Documentation
24+
</DocLink>
25+
</div>
26+
1627
{/* Message Handler Configuration */}
1728
<Section name="Message Handler">
1829
{children.handlerType.propertyView({

0 commit comments

Comments
 (0)