Skip to content

Commit

Permalink
fixing modal opening (#7375)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-sev authored Nov 1, 2024
1 parent a4f3a2c commit 98abd7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/guides/code-ai-buyers-guide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ import { BentoWithMockup } from '../../components/bentoWithMockup'
import { LogoGrid } from '../../components/cody/LogoGrid'
import { CaseStudyBento } from '../../components/Enterprise/CaseStudyBento'
import HomePageCta from '../../components/HomePageCta'
import { useAuthModal } from '../../context/AuthModalContext'
import { captureCustomEventWithPageData } from '../../lib/utils'

import styles from '../../styles/CustomHubspotForm.module.scss'

export const CodeAiBuyersGuide: NextPage = () => {
const { openModal } = useAuthModal()

const meta = {
title: 'Sourcegraph - Code AI Buyers Guide',
description: "Buyer's guide to AI Coding Tools",
Expand All @@ -29,9 +32,12 @@ export const CodeAiBuyersGuide: NextPage = () => {
formContainerRef.current.scrollIntoView({ behavior: 'smooth', block: 'start' })
}
}, [formSubmitted])

const handleOpenModal = (pagePosition: string): void => {
captureCustomEventWithPageData('get_cody_onpage_click', pagePosition)
openModal('home')
}

const statistics = [
{ label: '75%', description: 'reduction in time spent answering questions' },
{
Expand Down

0 comments on commit 98abd7b

Please sign in to comment.