-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: change Mendable AI widget asset url (#1575)
* change mendable widget icon urls * change mendable widget icon urls
- Loading branch information
1 parent
53870da
commit 65ecd70
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
@@ -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", | ||
|