Skip to content

Commit

Permalink
fix(embed): 📝 initContainer typo
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 20, 2022
1 parent a178124 commit 24b077c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apps/builder/components/share/codeSnippets/ReactCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const parseContainerSnippet = ({
backgroundColor,
hiddenVariables,
})
return `import {initContainer} from "typebot-js";
return `import Typebot from "typebot-js";
const Component = () => {
useEffect(()=> {
Expand Down Expand Up @@ -98,7 +98,7 @@ const parsePopupSnippet = ({
hiddenVariables,
delay,
})
return `import {initPopup} from "typebot-js";
return `import Typebot from "typebot-js";
const Component = () => {
useEffect(()=> {
Expand Down Expand Up @@ -151,7 +151,7 @@ const parseBubbleSnippet = ({
proactiveMessage,
button,
})
return `import {initBubble} from "typebot-js";
return `import Typebot from "typebot-js";
const Component = () => {
useEffect(()=> {
Expand Down
6 changes: 3 additions & 3 deletions apps/builder/components/share/codeSnippets/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const parseInitContainerCode = ({
backgroundColor,
})
return prettier.format(
`initContainer("typebot-container", {
`Typebot.initContainer("typebot-container", {
url: "${url}",${bgColorString}${customDomainString}${hiddenVariablesString}
});`,
{ parser: 'babel', plugins: [parserBabel] }
Expand All @@ -110,7 +110,7 @@ export const parseInitPopupCode = ({
})
const { delayString } = parsePopupParams({ delay })
return prettier.format(
`var typebotCommands = initPopup({url: "${url}",${delayString}${bgColorString}${customDomainString}${hiddenVariablesString}});`,
`var typebotCommands = Typebot.initPopup({url: "${url}",${delayString}${bgColorString}${customDomainString}${hiddenVariablesString}});`,
{ parser: 'babel', plugins: [parserBabel] }
)
}
Expand All @@ -134,7 +134,7 @@ export const parseInitBubbleCode = ({
proactiveMessage,
})
return prettier.format(
`var typebotCommands = initBubble({url: "${url}",${bgColorString}${customDomainString}${hiddenVariablesString}${proactiveMessageString}${buttonString}});`,
`var typebotCommands = Typebot.initBubble({url: "${url}",${bgColorString}${customDomainString}${hiddenVariablesString}${proactiveMessageString}${buttonString}});`,
{ parser: 'babel', plugins: [parserBabel] }
)
}
Expand Down

4 comments on commit 24b077c

@vercel
Copy link

@vercel vercel bot commented on 24b077c May 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 24b077c May 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 24b077c May 20, 2022

@vercel
Copy link

@vercel vercel bot commented on 24b077c May 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.