Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonma committed Jun 20, 2022
2 parents 19e1715 + 0d10920 commit 409d229
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { Box, chakra, Heading } from "@chakra-ui/react"
import Link from "next/link"
import Image from "next/image"
import {
AnimatePresence,
motion,
} from "framer-motion"
import { AnimatePresence, motion } from "framer-motion"
import { appWithTranslation } from "next-i18next"
import type { AppProps } from "next/app"
import React from "react"
import "../styles/globals.css"
import SqrlLogo from "../public/sqrl-logo.png"
import { useRouter } from "next/router"
import Script from "next/script"

const headingVariants = {
root: {
Expand All @@ -26,6 +24,10 @@ function Application({ Component, pageProps }: AppProps) {

return (
<React.Fragment>
<Script id="heap">
{`window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};
heap.load("${process.env.NEXT_PUBLIC_HEAP_ID}");`}
</Script>
<AnimatePresence exitBeforeEnter>
<Box
key="sqrl-logo-container"
Expand Down Expand Up @@ -58,7 +60,7 @@ function Application({ Component, pageProps }: AppProps) {
w={48}
h={48}
>
<Image src={SqrlLogo} layout="fill" objectFit="contain" />
<Image alt="logo" src={SqrlLogo} layout="fill" objectFit="contain" />
</Box>
<Heading
as={motion.h1}
Expand Down

0 comments on commit 409d229

Please sign in to comment.