From 3fc48736e5eaf520510940a613dcb709389d6a9a Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Tue, 3 Dec 2024 15:23:04 -0700 Subject: [PATCH] Chore: Add document link to generate onedrive link 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 + + . +

+ )}
)}