File tree Expand file tree Collapse file tree 3 files changed +0
-41
lines changed Expand file tree Collapse file tree 3 files changed +0
-41
lines changed Original file line number Diff line number Diff line change 1616 "react" : " 17.0.2" ,
1717 "react-dom" : " 17.0.2" ,
1818 "react-feather" : " ^2.0.10" ,
19- "react-ga4" : " ^1.4.1" ,
2019 "react-parallax" : " ^3.5.1" ,
2120 "styled-components" : " ^5.3.5" ,
2221 "uuid" : " ^9.0.0"
Original file line number Diff line number Diff line change 1- import { useEffect } from 'react' ;
21import Head from 'next/head' ;
32import Footer from '@/components/common/Footer' ;
43import Header from '@/components//common/Header' ;
54import Site from '@/components/common/Site' ;
65import '@/styles/globals.css' ;
7- import { initGA , logPageView } from '@/utils/analytics' ;
86
97function MyApp ( { Component, pageProps } ) {
10- useEffect ( ( ) => {
11- if ( ! window . GA_INITIALIZED ) {
12- initGA ( ) ;
13- window . GA_INITIALIZED = true ;
14- }
15- logPageView ( ) ;
16-
17- const appHeight = ( ) => {
18- const doc = document . documentElement ;
19- doc . style . setProperty ( '--app-height' , `${ window . innerHeight } px` ) ;
20- } ;
21-
22- window . addEventListener ( 'resize' , appHeight ) ;
23-
24- appHeight ( ) ;
25- } , [ ] ) ;
26-
278 return (
289 < Site >
2910 < Head >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments