From 78de0496c39486cd1d09f882a8c56807a7837394 Mon Sep 17 00:00:00 2001 From: louis-md Date: Fri, 31 May 2024 15:03:53 +0200 Subject: [PATCH] Fix sending events to GA (#490) * Replace ReactGA by Next GTM * Regenerate API Docs * Fix typo in GTM event --- components/ApiReference/mainnet-swagger.json | 22 +++++----- components/Feedback/index.tsx | 21 +++++---- package.json | 1 - pages/_app.tsx | 45 ++------------------ pnpm-lock.yaml | 7 --- 5 files changed, 27 insertions(+), 69 deletions(-) diff --git a/components/ApiReference/mainnet-swagger.json b/components/ApiReference/mainnet-swagger.json index c017ee4c..3728e556 100644 --- a/components/ApiReference/mainnet-swagger.json +++ b/components/ApiReference/mainnet-swagger.json @@ -3564,7 +3564,7 @@ "title": "Uuid", "type": "string", "format": "uuid", - "default": "e7f6dea2-82e3-4b35-b76f-f02bdd35b969" + "default": "f9288c31-2ceb-42ae-86fb-f5b316314421" }, "safes": { "type": "array", @@ -3633,7 +3633,7 @@ "title": "Uuid", "type": "string", "format": "uuid", - "default": "8de67837-e904-4ed5-954d-d8bf08a9f475" + "default": "ba199065-f3e4-4ffd-a7a3-1fc7f4a1d2e2" }, "safes": { "type": "array", @@ -3719,7 +3719,7 @@ "nonce", "initCode", "callData", - "callDataGasLimit", + "callGasLimit", "verificationGasLimit", "preVerificationGas", "maxFeePerGas", @@ -3758,8 +3758,8 @@ "type": "string", "x-nullable": true }, - "callDataGasLimit": { - "title": "Call data gas limit", + "callGasLimit": { + "title": "Call gas limit", "type": "integer", "minimum": 0 }, @@ -4492,7 +4492,7 @@ "nonce", "initCode", "callData", - "callDataGasLimit", + "callGasLimit", "verificationGasLimit", "preVerificationGas", "maxFeePerGas", @@ -4531,8 +4531,8 @@ "type": "string", "x-nullable": true }, - "callDataGasLimit": { - "title": "Call data gas limit", + "callGasLimit": { + "title": "Call gas limit", "type": "integer", "minimum": 0 }, @@ -4811,7 +4811,7 @@ "nonce", "initCode", "callData", - "callDataGasLimit", + "callGasLimit", "verificationGasLimit", "preVerificationGas", "maxFeePerGas", @@ -4840,8 +4840,8 @@ "type": "string", "x-nullable": true }, - "callDataGasLimit": { - "title": "Call data gas limit", + "callGasLimit": { + "title": "Call gas limit", "type": "integer", "minimum": 0 }, diff --git a/components/Feedback/index.tsx b/components/Feedback/index.tsx index 4eb1db0c..5ab6155a 100644 --- a/components/Feedback/index.tsx +++ b/components/Feedback/index.tsx @@ -10,7 +10,7 @@ import { } from '@mui/material' import AddIcon from '@mui/icons-material/Add' import NextLink from 'next/link' -import ReactGA from 'react-ga4' +import { sendGTMEvent } from '@next/third-parties/google' import FeedbackGood from '../../assets/svg/feedback-good.svg' import FeedbackBad from '../../assets/svg/feedback-bad.svg' @@ -25,9 +25,7 @@ const ReportIssue: React.FC<{ small?: boolean }> = ({ small = false }) => ( >