Skip to content

Commit

Permalink
Merge branch 'fix/resolve_docs_page'
Browse files Browse the repository at this point in the history
  • Loading branch information
ukjinjang committed Aug 12, 2024
2 parents a8d1ca1 + e0ed0fc commit bdf49b5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Provides API of Channel IO as React hook. Please refer [official docs](https://d
- `showMessenger`
- `hideMessenger`
- `openChat`
- `openSupportBot`
- `openWorkflow`
- `track`
- `clearCallbacks`
- `updateUser`
Expand Down
12 changes: 5 additions & 7 deletions playground/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const App: React.FC = () => {
showMessenger,
hideMessenger,
openChat,
openSupportBot,
openWorkflow,
track,
updateUser,
addTags,
Expand Down Expand Up @@ -144,19 +144,17 @@ const App: React.FC = () => {
/>

<FeatureSection
title="openSupportBot"
title="openWorkflow"
description="Opens a chat and initiates a specific support bot. (won't work since demo account is not paid account)"
link="https://developers.channel.io/docs/web-channelio#openchat"
link="https://developers.channel.io/docs/web-channelio#openworkflow"
disabled={!isBooted}
onClick={() =>
openSupportBot('101816', 'Hi, this is a test message!')
}
onClick={() => openWorkflow('101816')}
/>

<FeatureSection
title="track"
description="Tracks an event."
link="https://developers.channel.io/docs/web-channelio#openchat"
link="https://developers.channel.io/docs/web-channelio#track"
disabled={!isBooted}
onClick={() => track('', {})}
/>
Expand Down
2 changes: 1 addition & 1 deletion playground/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const StyledHeaderIcon = styled.img`
const Header: React.FC = () => {
return (
<StyledHeader>
<StyledHeaderIcon src="/favicon.png" alt="favicon" />
<StyledHeaderIcon src="./favicon.png" alt="favicon" />

<StyledHeaderTitle>
<h1>react-channel-plugin</h1>
Expand Down
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export default defineConfig(({ mode }) => {
return {
root,

base: './',

build: {
outDir: path.join(cwd, 'build'),
emptyOutDir: true,
Expand Down

0 comments on commit bdf49b5

Please sign in to comment.