Skip to content

Commit e74b59f

Browse files
author
Michael Dijkstra
committed
Standardise links
1 parent dc111ff commit e74b59f

8 files changed

Lines changed: 46 additions & 67 deletions

File tree

website/components/exampleLinks.js

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,38 @@ import React from 'react'
22
import Link from 'next/link'
33

44
const ExampleLinks = () => (
5-
<>
6-
<p>
5+
<ul>
6+
<li>
77
<Link href="/intercom">
8-
<a>
9-
Intercom example <span></span>
10-
</a>
8+
<a>Intercom</a>
119
</Link>
12-
</p>
13-
<p>
10+
</li>
11+
<li>
1412
<Link href="/helpscout">
15-
<a>
16-
Help Scout example <span></span>
17-
</a>
13+
<a>Help Scout</a>
1814
</Link>
19-
</p>
20-
<p>
15+
</li>
16+
<li>
2117
<Link href="/drift">
22-
<a>
23-
Drift example <span></span>
24-
</a>
18+
<a>Drift</a>
2519
</Link>
26-
</p>
27-
<p>
20+
</li>
21+
<li>
2822
<Link href="/messenger">
29-
<a>
30-
Facebook Messenger example <span></span>
31-
</a>
23+
<a>Facebook Messenger</a>
3224
</Link>
33-
</p>
34-
<p>
25+
</li>
26+
<li>
3527
<Link href="/userlike">
36-
<a>
37-
Userlike example <span></span>
38-
</a>
28+
<a>Userlike</a>
3929
</Link>
40-
</p>
41-
</>
30+
</li>
31+
<li>
32+
<Link href="/chatwoot">
33+
<a>Chatwoot</a>
34+
</Link>
35+
</li>
36+
</ul>
4237
)
4338

4439
export default ExampleLinks

website/pages/chatwoot.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import ExampleLinks from '../components/exampleLinks'
44
import { LiveChatLoaderProvider, Chatwoot } from 'react-live-chat-loader'
55

66
const Page = () => (
7-
<LiveChatLoaderProvider provider="chatwoot" providerKey="E33wn9ftxMDHZx18AaBkfPvY">
7+
<LiveChatLoaderProvider
8+
provider="chatwoot"
9+
providerKey="E33wn9ftxMDHZx18AaBkfPvY"
10+
>
811
<Layout title="React Live Chat Loader: Chatwoot">
912
<div className="wrapper">
1013
<div className="inner">
@@ -16,7 +19,9 @@ const Page = () => (
1619
</a>
1720
.
1821
</p>
19-
<ExampleLinks />
22+
<p>
23+
View other demos: <ExampleLinks />
24+
</p>
2025
</div>
2126
</div>
2227
<Chatwoot />

website/pages/drift.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ const Page = () => (
1616
</a>
1717
.
1818
</p>
19-
<ExampleLinks />
19+
<p>
20+
View other demos: <ExampleLinks />
21+
</p>
2022
</div>
2123
</div>
2224
<Drift icon="A" color="#0176ff" />

website/pages/helpscout.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ const Page = () => (
1919
</a>
2020
.
2121
</p>
22-
<ExampleLinks />
22+
<p>
23+
View other demos: <ExampleLinks />
24+
</p>
2325
</div>
2426
</div>
2527
<HelpScout color="#527ceb" />

website/pages/index.js

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react'
22
import Layout from '../layouts/main'
33
import Link from 'next/link'
4+
import ExampleLinks from '../components/exampleLinks'
45

56
const Page = () => (
67
<Layout title="React Live Chat Loader">
@@ -24,39 +25,7 @@ const Page = () => (
2425
</a>
2526
</p>
2627
<p>
27-
View demos:{' '}
28-
<ul>
29-
<li>
30-
<Link href="/chatwoot">
31-
<a>Chatwoot</a>
32-
</Link>
33-
</li>
34-
<li>
35-
<Link href="/intercom">
36-
<a>Intercom</a>
37-
</Link>
38-
</li>
39-
<li>
40-
<Link href="/helpscout">
41-
<a>Help Scout</a>
42-
</Link>
43-
</li>
44-
<li>
45-
<Link href="/drift">
46-
<a>Drift</a>
47-
</Link>
48-
</li>
49-
<li>
50-
<Link href="/messenger">
51-
<a>Facebook Messenger</a>
52-
</Link>
53-
</li>
54-
<li>
55-
<Link href="/userlike">
56-
<a>Userlike</a>
57-
</Link>
58-
</li>
59-
</ul>
28+
View demos: <ExampleLinks />
6029
</p>
6130
</div>
6231
</div>

website/pages/intercom.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ const Page = () => (
1616
</a>
1717
.
1818
</p>
19-
<ExampleLinks />
19+
<p>
20+
View other demos: <ExampleLinks />
21+
</p>
2022
</div>
2123
</div>
2224
<Intercom color="#333333" />

website/pages/messenger.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ const Page = () => (
1717
</a>
1818
.
1919
</p>
20-
<ExampleLinks />
20+
<p>
21+
View other demos: <ExampleLinks />
22+
</p>
2123
</div>
2224
</div>
2325
<Messenger

website/pages/userlike.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ const Page = () => (
1919
</a>
2020
.
2121
</p>
22-
<ExampleLinks />
22+
<p>
23+
View other demos: <ExampleLinks />
24+
</p>
2325
</div>
2426
</div>
2527
<Userlike vOffset="47px" hOffset="49px" />

0 commit comments

Comments
 (0)