Skip to content

Commit

Permalink
Remove legacy hotjar implementation (podkrepi-bg#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 and RalitsaIlieva committed Dec 14, 2023
1 parent a7f5c52 commit e6a9b31
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 32 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
3 changes: 0 additions & 3 deletions src/components/client/index/IndexPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import TeamMembersSection from './sections/TeamMembersSection/TeamMembersSection
import JoinPodkrepiBgSection from './sections/JoinPodkrepiBgSection/JoinPodkrepiBgSection'
import FaqSection from './sections/FaqSection/FaqSection'

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

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

0 comments on commit e6a9b31

Please sign in to comment.