Skip to content

Commit 3c21bf2

Browse files
committed
2 parents db9864d + 16207ac commit 3c21bf2

File tree

28 files changed

+4846
-2263
lines changed

28 files changed

+4846
-2263
lines changed

package-lock.json

Lines changed: 15 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"url": "https://github.com/calibreapp/react-live-chat-loader.git"
4040
},
4141
"peerDependencies": {
42-
"react": "^16.14.0 || ^17.0.0 || ^18.0.0"
42+
"react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
4343
},
4444
"devDependencies": {
4545
"@babel/cli": "^7.19.3",
Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1+
'use client'
12
import React from 'react'
23
import {
34
LiveChatLoaderProvider,
45
AdobeDynamicChat
56
} from 'react-live-chat-loader'
6-
import type { NextPage } from 'next'
77

8-
import Layout from '../layouts/main'
9-
import ExampleLinks from '../components/exampleLinks'
8+
import ExampleLinks from '../../components/exampleLinks'
109

11-
const Page: NextPage = () => (
12-
<LiveChatLoaderProvider
13-
provider="adobeDynamicChat"
14-
providerKey=""
15-
instanceId=""
16-
env=""
17-
geo=""
18-
>
19-
<Layout title="React Live Chat Loader: Adobe Dynamic Chat">
10+
export default function AdobeDynamicChatPage() {
11+
return (
12+
<LiveChatLoaderProvider
13+
provider="adobeDynamicChat"
14+
providerKey=""
15+
instanceId=""
16+
env=""
17+
geo=""
18+
>
2019
<div className="wrapper">
2120
<div className="inner">
2221
<h1>React Live Chat Loader: Adobe Dynamic Chat</h1>
@@ -33,8 +32,6 @@ const Page: NextPage = () => (
3332
</div>
3433
</div>
3534
<AdobeDynamicChat />
36-
</Layout>
37-
</LiveChatLoaderProvider>
38-
)
39-
40-
export default Page
35+
</LiveChatLoaderProvider>
36+
)
37+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1+
'use client';
12
import React from 'react'
23
import { LiveChatLoaderProvider, Chatwoot } from 'react-live-chat-loader'
3-
import type { NextPage } from 'next'
4+
import ExampleLinks from '../../components/exampleLinks'
45

5-
import Layout from '../layouts/main'
6-
import ExampleLinks from '../components/exampleLinks'
6+
export default function ChatwootPage() {
7+
return (
8+
<LiveChatLoaderProvider provider="chatwoot" providerKey="E33wn9ftxMDHZx18AaBkfPvY">
79

8-
const Page: NextPage = () => (
9-
<LiveChatLoaderProvider
10-
provider="chatwoot"
11-
providerKey="E33wn9ftxMDHZx18AaBkfPvY"
12-
>
13-
<Layout title="React Live Chat Loader: Chatwoot">
1410
<div className="wrapper">
1511
<div className="inner">
1612
<h1>React Live Chat Loader: Chatwoot</h1>
@@ -26,8 +22,7 @@ const Page: NextPage = () => (
2622
</div>
2723
</div>
2824
<Chatwoot />
29-
</Layout>
30-
</LiveChatLoaderProvider>
31-
)
3225

33-
export default Page
26+
</LiveChatLoaderProvider>
27+
)
28+
}
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1+
'use client';
12
import React from 'react'
23
import { LiveChatLoaderProvider, Drift } from 'react-live-chat-loader'
3-
import type { NextPage } from 'next'
4+
import ExampleLinks from '../../components/exampleLinks'
45

5-
import Layout from '../layouts/main'
6-
import ExampleLinks from '../components/exampleLinks'
6+
export default function ChatwootPage() {
7+
return (
8+
<LiveChatLoaderProvider provider="drift" providerKey="fv5fpb4nmax7">
79

8-
const Page: NextPage = () => (
9-
<LiveChatLoaderProvider provider="drift" providerKey="fv5fpb4nmax7">
10-
<Layout title="React Live Chat Loader: Drift">
1110
<div className="wrapper">
1211
<div className="inner">
1312
<h1>React Live Chat Loader: Drift</h1>
1413
<p>
15-
This is an example implementation of the Drift chat widget using{' '}
14+
This is an example implementation of the Drift widget using{' '}
1615
<a href="https://github.com/calibreapp/react-live-chat-loader">
1716
react-live-chat-loader
1817
</a>
@@ -23,8 +22,7 @@ const Page: NextPage = () => (
2322
</div>
2423
</div>
2524
<Drift icon="A" color="#0176ff" />
26-
</Layout>
27-
</LiveChatLoaderProvider>
28-
)
2925

30-
export default Page
26+
</LiveChatLoaderProvider>
27+
)
28+
}

0 commit comments

Comments
 (0)