Skip to content

Commit

Permalink
Remove legacy hotjar implementation (#1678)
Browse files Browse the repository at this point in the history
* Remove legacy hotjar implementation
Hotjar is now loaded through the GTM

* CampaignsPage.tsx: Remove Hotjar implementation
  • Loading branch information
sashko9807 authored Dec 4, 2023
1 parent c133da3 commit c87d39f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 33 deletions.
8 changes: 0 additions & 8 deletions public/js/hotJarLib.js

This file was deleted.

17 changes: 0 additions & 17 deletions src/common/hotjar/HotJar.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/client/campaigns/CampaignsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import CampaignFilter from './CampaignFilter'
import Layout from 'components/client/layout/Layout'

import { styled } from '@mui/material/styles'
import dynamic from 'next/dynamic'

const PREFIX = 'CampaignsPage'

Expand Down Expand Up @@ -71,14 +70,11 @@ const Root = styled(Layout)(({ theme }) => ({
},
}))

const HotJar = dynamic(() => import('common/hotjar/HotJar'), { ssr: false })

export default function CampaignsPage() {
const { t } = useTranslation()

return (
<Root maxWidth={false}>
<HotJar />
<Grid>
<Typography variant="h1" component="p" className={classes.title}>
{t('campaigns:campaigns')}
Expand Down
4 changes: 0 additions & 4 deletions src/components/client/index/IndexPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import PartnersSection from './sections/PartnersSection/PartnersSection'
import TeamMembersSection from './sections/TeamMembersSection/TeamMembersSection'
import JoinPodkrepiBgSection from './sections/JoinPodkrepiBgSection/JoinPodkrepiBgSection'
import FaqSection from './sections/FaqSection/FaqSection'
import dynamic from 'next/dynamic'

const HotJar = dynamic(() => import('common/hotjar/HotJar'), { ssr: false })

export default function IndexPage() {
const { t } = useTranslation('index')
Expand All @@ -23,7 +20,6 @@ export default function IndexPage() {
disableGutters
title={t('title')}
metaDescription={t('metaDescription')}>
<HotJar />
<ActiveCampaignsSection />
<CompletedCampaignsSection />
<PlatformStatisticsSection />
Expand Down

0 comments on commit c87d39f

Please sign in to comment.