Skip to content

Commit

Permalink
Fix lint (#383)
Browse files Browse the repository at this point in the history
* remove google tag manager

* fix lint

* fix lint
  • Loading branch information
yuval-hazaz authored Jun 20, 2023
1 parent d272ec4 commit e62697e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ApolloProvider } from '@apollo/client';
import {ApolloProvider} from '@apollo/client';
import Head from 'next/head';
import Script from 'next/script';
import { useRouter } from 'next/router';
import { DefaultSeo } from 'next-seo';
import {useRouter} from 'next/router';
import {DefaultSeo} from 'next-seo';
import PropTypes from 'prop-types';
import { useEffect } from 'react';
import {useEffect} from 'react';
import Typed from 'typed.js';

import '../styles/globals.css';
Expand All @@ -14,8 +14,8 @@ import 'react-loading-skeleton/dist/skeleton.css';
import client from '../services/index';
import * as analytics from '../lib/analytics';

function Amplication({ Component, pageProps }) {
const { asPath } = useRouter();
function Amplication({Component, pageProps}) {
const {asPath} = useRouter();
const isBlogPage = Boolean(
asPath.includes('/blog') || asPath.includes('/tags')
);
Expand All @@ -29,7 +29,7 @@ function Amplication({ Component, pageProps }) {

useEffect(() => {
const handleRouteChange = url => {
analytics.page(url, { url });
analytics.page(url, {url});
};
//When the component is mounted, subscribe to router changes
//and log those page views
Expand Down

0 comments on commit e62697e

Please sign in to comment.