From 8e1a7883bf0e656defc92b0cc83e12bdfff7fa9a Mon Sep 17 00:00:00 2001 From: lindtvedtsebastian <46536611+lindtvedtsebastian@users.noreply.github.com> Date: Wed, 5 Jun 2024 08:49:27 +0200 Subject: [PATCH] feat(support): add support email buttons (#1534) * feat(support): add support email buttons * chore(footer): remove redundant mb * feat(preview): fix scroll to top bug --- .../app/(admin)/components/Footer/index.tsx | 28 ++++++++++++++++--- .../app/(admin)/components/Preview/index.tsx | 2 +- next-tavla/app/components/FloatingContact.tsx | 23 +++++++++++++++ next-tavla/app/layout.tsx | 4 +++ next-tavla/app/page.tsx | 5 +--- 5 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 next-tavla/app/components/FloatingContact.tsx diff --git a/next-tavla/app/(admin)/components/Footer/index.tsx b/next-tavla/app/(admin)/components/Footer/index.tsx index 314598891..6dc6cfd6f 100644 --- a/next-tavla/app/(admin)/components/Footer/index.tsx +++ b/next-tavla/app/(admin)/components/Footer/index.tsx @@ -1,10 +1,13 @@ +'use client' import Image from 'next/image' import TavlaLogo from 'assets/logos/Tavla-white.svg' import { Heading3, Link as EnturLink, Paragraph } from '@entur/typography' import Link from 'next/link' import { ExternalIcon, GithubIcon } from '@entur/icons' +import { usePostHog } from 'posthog-js/react' function Footer() { + const posthog = usePostHog() return (