Skip to content

Commit 23fceaa

Browse files
committed
Fix GA and Algolia settings
1 parent 3717414 commit 23fceaa

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

website/docusaurus.config.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const siteConfig = {
3131
require.resolve('./static/css/codeblock.css'),
3232
],
3333
},
34+
googleAnalytics: {
35+
trackingID: 'UA-130598673-2',
36+
},
3437
},
3538
],
3639
],
@@ -62,7 +65,7 @@ const siteConfig = {
6265
repoUrl: 'https://github.com/reduxjs/react-redux',
6366
},
6467
themeConfig: {
65-
metadatas: [{ name: 'twitter:card', content: 'summary' }],
68+
metadata: [{ name: 'twitter:card', content: 'summary' }],
6669
prism: {
6770
theme: require('./static/scripts/monokaiTheme.js'),
6871
},
@@ -183,13 +186,11 @@ const siteConfig = {
183186
],
184187
},
185188
algolia: {
186-
apiKey: '2d058d216b7fd5d68d481fd48ee72c06',
189+
appId: 'G15KG9HEMQ',
190+
apiKey: '3a19f2b0974a8fdde5e8eee758059ba4',
187191
indexName: 'react-redux',
188192
algoliaOptions: {},
189193
},
190-
googleAnalytics: {
191-
trackingID: 'UA-130598673-2',
192-
},
193194
},
194195
plugins: [
195196
[

website/src/pages/index.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Layout from '@theme/Layout'
44
import Link from '@docusaurus/Link'
55
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
66
import useBaseUrl from '@docusaurus/useBaseUrl'
7-
import useThemeContext from '@theme/hooks/useThemeContext'
87
import styles from './styles.module.css'
98

109
const features = [
@@ -20,7 +19,7 @@ const features = [
2019
),
2120
image: <img src="img/noun_Certificate_1945625.svg" />,
2221
imageAlign: 'top',
23-
title: 'Official'
22+
title: 'Official',
2423
},
2524
{
2625
content: (
@@ -32,7 +31,7 @@ const features = [
3231
),
3332
image: <img src="img/noun_Check_1870817.svg" />,
3433
imageAlign: 'top',
35-
title: 'Predictable'
34+
title: 'Predictable',
3635
},
3736
{
3837
content: (
@@ -44,7 +43,7 @@ const features = [
4443
),
4544
image: <img src="img/noun_Box_1664404.svg" />,
4645
imageAlign: 'top',
47-
title: 'Encapsulated'
46+
title: 'Encapsulated',
4847
},
4948
{
5049
content: (
@@ -56,8 +55,8 @@ const features = [
5655
),
5756
image: <img src="img/noun_Rocket_1245262.svg" />,
5857
imageAlign: 'top',
59-
title: 'Optimized'
60-
}
58+
title: 'Optimized',
59+
},
6160
]
6261

6362
const otherLibraries = [
@@ -75,7 +74,7 @@ const otherLibraries = [
7574
>
7675
<path d="M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"></path>
7776
</svg>
78-
)
77+
),
7978
},
8079
{
8180
content:
@@ -92,8 +91,8 @@ const otherLibraries = [
9291
>
9392
<path d="M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"></path>
9493
</svg>
95-
)
96-
}
94+
),
95+
},
9796
]
9897

9998
function Home() {

0 commit comments

Comments
 (0)