From 1a7a2ea96d7e5f12fb5da8440c969daa618cf5d7 Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Tue, 3 Dec 2024 16:09:28 -0700 Subject: [PATCH] Chore: Add document link to generate onedrive link (#745) Signed-off-by: Daishan Peng --- .../components/knowledge/AddSourceModal.tsx | 81 ++++++++++++------- 1 file changed, 51 insertions(+), 30 deletions(-) diff --git a/ui/admin/app/components/knowledge/AddSourceModal.tsx b/ui/admin/app/components/knowledge/AddSourceModal.tsx index bf2ce4c5..f0653860 100644 --- a/ui/admin/app/components/knowledge/AddSourceModal.tsx +++ b/ui/admin/app/components/knowledge/AddSourceModal.tsx @@ -85,36 +85,57 @@ const AddSourceModal: FC = ({
{sourceType !== KnowledgeSourceType.Notion && ( -
- - - sourceType === KnowledgeSourceType.Website - ? setNewWebsite(e.target.value) - : setNewLink(e.target.value) - } - placeholder={ - sourceType === KnowledgeSourceType.Website - ? "Enter website URL" - : "Enter OneDrive folder link" - } - className="w-[250px] dark:bg-secondary" - /> +
+
+ + + sourceType === + KnowledgeSourceType.Website + ? setNewWebsite(e.target.value) + : setNewLink(e.target.value) + } + placeholder={ + sourceType === + KnowledgeSourceType.Website + ? "Enter website URL" + : "Enter OneDrive folder link" + } + className="w-[250px] dark:bg-secondary" + /> +
+ {sourceType === KnowledgeSourceType.OneDrive && ( +

+ For instructions on obtaining a OneDrive + link, see{" "} + + this document + + . +

+ )}
)}