Skip to content

Commit

Permalink
chore: change Mendable AI widget asset url (#1575)
Browse files Browse the repository at this point in the history
* change mendable widget icon urls

* change mendable widget icon urls

(cherry picked from commit 65ecd70)
  • Loading branch information
nagesh161007 committed Sep 20, 2023
1 parent 085e5d5 commit 98f927a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/MendableAIWidget/MendableAIWidget.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import { useEffect } from "react";
// import spectrocloudLogo from "@site/static/assets/spectrocloud-logo.png";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
// import spectrologoUser from "@site/static/assets/spectrocloud-logo-black.svg";
import useBaseUrl from "@docusaurus/useBaseUrl";

export const MENDABLE_SCRIPT_URL = "https://unpkg.com/@mendable/search@0.0.158/dist/umd/mendable-bundle.min.js";
export const MENDABLE_SCRIPT_URL =
"https://unpkg.com/@mendable/search@0.0.158/dist/umd/mendable-bundle.min.js";

export default function MendableAIWidget() {
const {
siteConfig: { customFields },
} = useDocusaurusContext();

const logoUrl = useBaseUrl("/spectrocloud-logo.png");
const botUrl = useBaseUrl("/spectrocloud-logo-black.svg");

useEffect(() => {
const script = document.createElement("script");
script.src = MENDABLE_SCRIPT_URL;
Expand All @@ -26,9 +29,8 @@ export default function MendableAIWidget() {
type: "floatingButton",
dialogPlaceholder: "What is Palette?",
cmdShortcutKey: "l",
welcomeMessage:"Ask my anything about Palette",
// icon: spectrocloudLogo as string,
// botIcon: spectrologoUser,
icon: logoUrl,
botIcon: botUrl,
isPinnable: true,
floatingButtonStyle: {
color: "#FFFFFF",
Expand Down

0 comments on commit 98f927a

Please sign in to comment.