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
  • Loading branch information
nagesh161007 authored Sep 20, 2023
1 parent 53870da commit 65ecd70
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/[email protected]/dist/umd/mendable-bundle.min.js";
export const MENDABLE_SCRIPT_URL =
"https://unpkg.com/@mendable/[email protected]/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 65ecd70

Please sign in to comment.