Skip to content

Commit

Permalink
feat: Bubble integration details and the corresponding code added
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayur committed Nov 21, 2024
1 parent 770fd18 commit 29663fa
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion apps/web/components/Integration/IntegrationData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ export class AppComponent {
),
},
[IntegrationEnum.BUBBLE]: {
'Integration Steps': () => (
'1) Integration Steps': () => (
<>
<List type="ordered" styles={{ item: { margin: '10px 0', paddingLeft: '20px' } }}>
<List.Item>
Expand Down Expand Up @@ -1000,5 +1000,26 @@ export class AppComponent {
</Link>
</>
),
'2) Add Import Button': ({ accessToken, projectId, templateId }) => (
<>
<ModifiedText>
Now add Import Button provided by <Code>@impler/react</Code> which opens the Widget
</ModifiedText>
<CodeBlock
height={HEIGHTS.WITH_TEXT}
code={`
import { useImpler } from "@impler/react";
const { showWidget, isImplerInitiated } = useImpler({
projectId: "${projectId}",
templateId: "${templateId}",
accessToken: "${accessToken}",
});
<button disabled={!isImplerInitiated} onClick={showWidget}>Import</button>`}
language="javascript"
/>
</>
),
},
};

0 comments on commit 29663fa

Please sign in to comment.