Skip to content

Commit

Permalink
Fix analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypalacios committed Mar 7, 2024
1 parent 71a05a5 commit 0113f7e
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 73 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.15",
"@mui/material": "^5.13.5",
"@next/third-parties": "^14.1.2",
"@next/third-parties": "^14.1.3",
"@polkadot/api": "^10.8.1",
"@polkadot/api-contract": "^10.8.1",
"@polkadot/react-identicon": "^3.5.1",
Expand All @@ -36,7 +36,7 @@
"dexie": "^3.2.4",
"fs-extra": "^11.1.1",
"graphql": "^16.8.0",
"next": "^14.1.2",
"next": "^14.1.3",
"nprogress": "^0.2.0",
"pg": "^8.11.3",
"react": "18.2.0",
Expand Down
3 changes: 3 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import "react-loading-skeleton/dist/skeleton.css";
import "react-toastify/dist/ReactToastify.css";

import { CacheProvider, EmotionCache } from "@emotion/react";
import { GoogleAnalytics } from "@next/third-parties/google";
import { NextPage } from "next";
import type { AppProps } from "next/app";
import dynamic from "next/dynamic";
Expand All @@ -15,6 +16,7 @@ import { AppNotificationsContextProvider } from "@/components/AppToastNotificati
import { Guard } from "@/components/guards";
import { AppLayout } from "@/components/layout/AppLayout";
import { MultisigEventListener } from "@/components/MultisigEventListener";
import { ANALYTICS_ID } from "@/config/app";
import { CHAINS } from "@/config/chain";
import { CallerXsignersAccountProvider } from "@/context/CallerXsigerAccounts";
import { NameInAddressBookProvider } from "@/context/NameInAddressBookContext";
Expand Down Expand Up @@ -96,6 +98,7 @@ export default function App(props: ExtendedProps) {
</LocalDbProvider>
</PolkadotContextProvider>
</UseInkProvider>
{ANALYTICS_ID && <GoogleAnalytics gaId={ANALYTICS_ID} />}
</CacheProvider>
);
}
4 changes: 0 additions & 4 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { GoogleAnalytics } from "@next/third-parties/google";
import { DocumentProps, Head, Html, Main, NextScript } from "next/document";

import { ANALYTICS_ID } from "@/config/app";

interface MyDocumentProps extends DocumentProps {
emotionStyleTags: JSX.Element[];
}
Expand All @@ -24,7 +21,6 @@ export default function Document({ emotionStyleTags }: MyDocumentProps) {
<Main />
<NextScript />
</body>
{ANALYTICS_ID && <GoogleAnalytics gaId={ANALYTICS_ID} />}
</Html>
);
}
134 changes: 67 additions & 67 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1853,10 +1853,10 @@
pump "^3.0.0"
tar-fs "^2.1.1"

"@next/[email protected].2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/env/-/env-14.1.2.tgz#7ddd06938b11b2a0a83bcfd8b7e47a1f0ce92049"
integrity sha512-U0iEG+JF86j6qyu330sfPgsMmDVH8vWVmzZadl+an5EU3o5HqdNytOpM+HsFpl58PmhGBTKx3UmM9c+eoLK0mA==
"@next/[email protected].3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/env/-/env-14.1.3.tgz#73007b64d487bbb95ed83145195f734fc1182d10"
integrity sha512-VhgXTvrgeBRxNPjyfBsDIMvgsKDxjlpw4IAUsHCX8Gjl1vtHUYRT3+xfQ/wwvLPDd/6kqfLqk9Pt4+7gysuCKQ==

"@next/[email protected]":
version "14.1.2"
Expand All @@ -1865,55 +1865,55 @@
dependencies:
glob "10.3.10"

"@next/[email protected].2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.1.2.tgz#0752ab8008ea07d730c1ef0b8aedf9732fa385d8"
integrity sha512-E4/clgk0ZrYMo9eMRwP/4IO/cvXF1yEYSnGcdGfH+NYTR8bNFy76TSlc1Vb2rK3oaQY4BVHRpx8f/sMN/D5gNw==

"@next/[email protected].2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-14.1.2.tgz#34b4034a083274fe2bd92a8a326e99853230b895"
integrity sha512-j8mEOI+ZM0tU9B/L/OGa6F7d9FXYMkog5OWWuhTWzz3iZ91UKIGGpD/ojTNKuejainDMgbqOBTNnLg0jZywM/g==

"@next/[email protected].2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.1.2.tgz#7c1bc344ddea81eafb0052fd275b02053b52f1b1"
integrity sha512-qpRrd5hl6BFTWiFLgHtJmqqQGRMs+ol0MN9pEp0SYoLs3j8OTErPiDMhbKWjMWHGdc2E3kg4RRBV3cSTZiePiQ==

"@next/[email protected].2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.1.2.tgz#fdbe5c9af294cefc631f2ef7b2389bcc7437b1a3"
integrity sha512-HAhvVXAv+wnbj0wztT0YnpgJVoHtw1Mv4Y1R/JJcg5yXSU8FsP2uEGUwjQaqPoD76YSZjuKl32YbJlmPgQbLFw==

"@next/[email protected].2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.1.2.tgz#554556ee889d6fcdcdb2389974f8abdbec38b854"
integrity sha512-PCWC312woXLWOXiedi1E+fEw6B/ECP1fMiK1nSoGS2E43o56Z8kq4WeJLbJoufFQGVj5ZOKU3jIVyV//3CI4wQ==

"@next/[email protected].2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.1.2.tgz#e5419a0f7d23c4ca09ee1d5ad57aba62b9aa466a"
integrity sha512-KQSKzdWPNrYZjeTPCsepEpagOzU8Nf3Zzu53X1cLsSY6QlOIkYcSgEihRjsMKyeQW4aSvc+nN5pIpC2pLWNSMA==

"@next/[email protected].2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.1.2.tgz#f77575763bd700a2adcfcd877abec530b4071c39"
integrity sha512-3b0PouKd09Ulm2T1tjaRnwQj9+UwSsMO680d/sD4XAlm29KkNmVLAEIwWTfb3L+E11Qyw+jdcN3HtbDCg5+vYA==

"@next/[email protected].2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.1.2.tgz#3a08469b61b66a8a03885f1fd5654799c722633e"
integrity sha512-CC1gaJY4h+wg6d5r2biggGM6nCFXh/6WEim2VOQI0WrA6easCQi2P2hzWyrU6moQ0g1GOiWzesGc6nn0a92Kgg==

"@next/[email protected].2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.2.tgz#f37ef1bd9be045410f3c1392dc1e573025390e62"
integrity sha512-pfASwanOd+yP3D80O63DuQffrBySZPuB7wRN0IGSRq/0rDm9p/MvvnLzzgP2kSiLOUklOrFYVax7P6AEzjGykQ==

"@next/third-parties@^14.1.2":
version "14.1.2"
resolved "https://registry.yarnpkg.com/@next/third-parties/-/third-parties-14.1.2.tgz#f05c958b25fd21ee52e3b00afff7d46fa4937cf3"
integrity sha512-RWJ9fEnz4iopvtG0Jq5tcsOcWVe4Dnpk5nbNT97GV2tY0mwjwIL63FGJEarGpAVY8+eTBLMIW0v3Tb42iB6VYQ==
"@next/[email protected].3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.1.3.tgz#b4c218fdb49275972d91e9a9a0ccadba243b6739"
integrity sha512-LALu0yIBPRiG9ANrD5ncB3pjpO0Gli9ZLhxdOu6ZUNf3x1r3ea1rd9Q+4xxUkGrUXLqKVK9/lDkpYIJaCJ6AHQ==

"@next/[email protected].3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-14.1.3.tgz#aa0d4357179d68daaa6f400708b76666708ffec9"
integrity sha512-E/9WQeXxkqw2dfcn5UcjApFgUq73jqNKaE5bysDm58hEUdUGedVrnRhblhJM7HbCZNhtVl0j+6TXsK0PuzXTCg==

"@next/[email protected].3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.1.3.tgz#1ba8df39c04368ede185f268c3a817a8f4290e4c"
integrity sha512-USArX9B+3rZSXYLFvgy0NVWQgqh6LHWDmMt38O4lmiJNQcwazeI6xRvSsliDLKt+78KChVacNiwvOMbl6g6BBw==

"@next/[email protected].3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.1.3.tgz#2fa8fe435862eb186aca6d6068c8aef2126ab11e"
integrity sha512-esk1RkRBLSIEp1qaQXv1+s6ZdYzuVCnDAZySpa62iFTMGTisCyNQmqyCTL9P+cLJ4N9FKCI3ojtSfsyPHJDQNw==

"@next/[email protected].3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.1.3.tgz#57a687b44337af219e07a79ecc8c63a3c1b2d020"
integrity sha512-8uOgRlYEYiKo0L8YGeS+3TudHVDWDjPVDUcST+z+dUzgBbTEwSSIaSgF/vkcC1T/iwl4QX9iuUyUdQEl0Kxalg==

"@next/[email protected].3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.1.3.tgz#8c057f8f7fb9679915df25eda6ab0ea1b7af85ff"
integrity sha512-DX2zqz05ziElLoxskgHasaJBREC5Y9TJcbR2LYqu4r7naff25B4iXkfXWfcp69uD75/0URmmoSgT8JclJtrBoQ==

"@next/[email protected].3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.1.3.tgz#5367333e701f722009592013502aa8e735bee782"
integrity sha512-HjssFsCdsD4GHstXSQxsi2l70F/5FsRTRQp8xNgmQs15SxUfUJRvSI9qKny/jLkY3gLgiCR3+6A7wzzK0DBlfA==

"@next/[email protected].3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.1.3.tgz#dc455021fee85e037f6fb4134e85895dce5a0495"
integrity sha512-DRuxD5axfDM1/Ue4VahwSxl1O5rn61hX8/sF0HY8y0iCbpqdxw3rB3QasdHn/LJ6Wb2y5DoWzXcz3L1Cr+Thrw==

"@next/[email protected].3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.3.tgz#4a8d4384901f0c48ece9dbb60cb9aea107d39e7c"
integrity sha512-uC2DaDoWH7h1P/aJ4Fok3Xiw6P0Lo4ez7NbowW2VGNXw/Xv6tOuLUcxhBYZxsSUJtpeknCi8/fvnSpyCFp4Rcg==

"@next/third-parties@^14.1.3":
version "14.1.3"
resolved "https://registry.yarnpkg.com/@next/third-parties/-/third-parties-14.1.3.tgz#5e14d1873638be10cbf2bb4f73038012f2131120"
integrity sha512-c3l0JnJzB5L2xXWK9DbH6nFpV1Z9vPFCiFan5l/pbwHjWGKxS8Q532MLAOW6EHB00vhCre8F/okBjGyPAGYpnw==
dependencies:
third-party-capital "1.0.20"

Expand Down Expand Up @@ -9197,28 +9197,28 @@ neo-async@^2.5.0, neo-async@^2.6.1, neo-async@^2.6.2:
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==

next@^14.1.2:
version "14.1.2"
resolved "https://registry.yarnpkg.com/next/-/next-14.1.2.tgz#21eb25ce54e896c5734feb0b32487001d32e99f5"
integrity sha512-p4RfNmopqkzRP1uUyBJnHii+qMg71f2udWhTTZopBB8b3T5QXNzn7yO+LCYHPWZG2kAvEn4l4neyJHqkXvo2wg==
next@^14.1.3:
version "14.1.3"
resolved "https://registry.yarnpkg.com/next/-/next-14.1.3.tgz#465bb21a1a6e703e776ca53ea71d05642867fdb5"
integrity sha512-oexgMV2MapI0UIWiXKkixF8J8ORxpy64OuJ/J9oVUmIthXOUCcuVEZX+dtpgq7wIfIqtBwQsKEDXejcjTsan9g==
dependencies:
"@next/env" "14.1.2"
"@next/env" "14.1.3"
"@swc/helpers" "0.5.2"
busboy "1.6.0"
caniuse-lite "^1.0.30001579"
graceful-fs "^4.2.11"
postcss "8.4.31"
styled-jsx "5.1.1"
optionalDependencies:
"@next/swc-darwin-arm64" "14.1.2"
"@next/swc-darwin-x64" "14.1.2"
"@next/swc-linux-arm64-gnu" "14.1.2"
"@next/swc-linux-arm64-musl" "14.1.2"
"@next/swc-linux-x64-gnu" "14.1.2"
"@next/swc-linux-x64-musl" "14.1.2"
"@next/swc-win32-arm64-msvc" "14.1.2"
"@next/swc-win32-ia32-msvc" "14.1.2"
"@next/swc-win32-x64-msvc" "14.1.2"
"@next/swc-darwin-arm64" "14.1.3"
"@next/swc-darwin-x64" "14.1.3"
"@next/swc-linux-arm64-gnu" "14.1.3"
"@next/swc-linux-arm64-musl" "14.1.3"
"@next/swc-linux-x64-gnu" "14.1.3"
"@next/swc-linux-x64-musl" "14.1.3"
"@next/swc-win32-arm64-msvc" "14.1.3"
"@next/swc-win32-ia32-msvc" "14.1.3"
"@next/swc-win32-x64-msvc" "14.1.3"

no-case@^3.0.4:
version "3.0.4"
Expand Down

0 comments on commit 0113f7e

Please sign in to comment.