@@ -7,13 +7,13 @@ import { useSearchParams } from 'next/navigation'
77import { GithubOutlineIcon } from '@/components/icons'
88import { useSession } from '@/lib/auth/auth-client'
99import { cn } from '@/lib/core/utils/cn'
10- import { trackLandingCta } from '@/app/(landing)/landing-analytics'
1110import {
1211 BlogDropdown ,
1312 type NavBlogPost ,
1413} from '@/app/(landing)/components/navbar/components/blog-dropdown'
1514import { DocsDropdown } from '@/app/(landing)/components/navbar/components/docs-dropdown'
1615import { GitHubStars } from '@/app/(landing)/components/navbar/components/github-stars'
16+ import { trackLandingCta } from '@/app/(landing)/landing-analytics'
1717import { getBrandConfig } from '@/ee/whitelabeling'
1818
1919type DropdownId = 'docs' | 'blog' | null
@@ -213,7 +213,13 @@ export default function Navbar({ logoOnly = false, blogPosts = [] }: NavbarProps
213213 href = '/workspace'
214214 className = 'inline-flex h-[30px] items-center gap-[7px] rounded-[5px] border border-[var(--white)] bg-[var(--white)] px-[9px] text-[13.5px] text-black transition-colors hover:border-[#E0E0E0] hover:bg-[#E0E0E0]'
215215 aria-label = 'Go to app'
216- onClick = { ( ) => trackLandingCta ( { label : 'Go to App' , section : 'navbar' , destination : '/workspace' } ) }
216+ onClick = { ( ) =>
217+ trackLandingCta ( {
218+ label : 'Go to App' ,
219+ section : 'navbar' ,
220+ destination : '/workspace' ,
221+ } )
222+ }
217223 >
218224 Go to App
219225 </ Link >
@@ -223,15 +229,23 @@ export default function Navbar({ logoOnly = false, blogPosts = [] }: NavbarProps
223229 href = '/login'
224230 className = 'inline-flex h-[30px] items-center rounded-[5px] border border-[var(--landing-border-strong)] px-[9px] text-[13.5px] text-[var(--landing-text)] transition-colors hover:bg-[var(--landing-bg-elevated)]'
225231 aria-label = 'Log in'
226- onClick = { ( ) => trackLandingCta ( { label : 'Log in' , section : 'navbar' , destination : '/login' } ) }
232+ onClick = { ( ) =>
233+ trackLandingCta ( { label : 'Log in' , section : 'navbar' , destination : '/login' } )
234+ }
227235 >
228236 Log in
229237 </ Link >
230238 < Link
231239 href = '/signup'
232240 className = 'inline-flex h-[30px] items-center gap-[7px] rounded-[5px] border border-[var(--white)] bg-[var(--white)] px-2.5 text-[13.5px] text-black transition-colors hover:border-[#E0E0E0] hover:bg-[#E0E0E0]'
233241 aria-label = 'Get started with Sim'
234- onClick = { ( ) => trackLandingCta ( { label : 'Get started' , section : 'navbar' , destination : '/signup' } ) }
242+ onClick = { ( ) =>
243+ trackLandingCta ( {
244+ label : 'Get started' ,
245+ section : 'navbar' ,
246+ destination : '/signup' ,
247+ } )
248+ }
235249 >
236250 Get started
237251 </ Link >
@@ -307,7 +321,14 @@ export default function Navbar({ logoOnly = false, blogPosts = [] }: NavbarProps
307321 < Link
308322 href = '/workspace'
309323 className = 'flex h-[32px] items-center justify-center rounded-[5px] border border-[var(--white)] bg-[var(--white)] text-[14px] text-black transition-colors active:bg-[#E0E0E0]'
310- onClick = { ( ) => { trackLandingCta ( { label : 'Go to App' , section : 'navbar' , destination : '/workspace' } ) ; setMobileMenuOpen ( false ) } }
324+ onClick = { ( ) => {
325+ trackLandingCta ( {
326+ label : 'Go to App' ,
327+ section : 'navbar' ,
328+ destination : '/workspace' ,
329+ } )
330+ setMobileMenuOpen ( false )
331+ } }
311332 aria-label = 'Go to app'
312333 >
313334 Go to App
@@ -317,15 +338,25 @@ export default function Navbar({ logoOnly = false, blogPosts = [] }: NavbarProps
317338 < Link
318339 href = '/login'
319340 className = 'flex h-[32px] items-center justify-center rounded-[5px] border border-[var(--landing-border-strong)] text-[14px] text-[var(--landing-text)] transition-colors active:bg-[var(--landing-bg-elevated)]'
320- onClick = { ( ) => { trackLandingCta ( { label : 'Log in' , section : 'navbar' , destination : '/login' } ) ; setMobileMenuOpen ( false ) } }
341+ onClick = { ( ) => {
342+ trackLandingCta ( { label : 'Log in' , section : 'navbar' , destination : '/login' } )
343+ setMobileMenuOpen ( false )
344+ } }
321345 aria-label = 'Log in'
322346 >
323347 Log in
324348 </ Link >
325349 < Link
326350 href = '/signup'
327351 className = 'flex h-[32px] items-center justify-center rounded-[5px] border border-[var(--white)] bg-[var(--white)] text-[14px] text-black transition-colors active:bg-[#E0E0E0]'
328- onClick = { ( ) => { trackLandingCta ( { label : 'Get started' , section : 'navbar' , destination : '/signup' } ) ; setMobileMenuOpen ( false ) } }
352+ onClick = { ( ) => {
353+ trackLandingCta ( {
354+ label : 'Get started' ,
355+ section : 'navbar' ,
356+ destination : '/signup' ,
357+ } )
358+ setMobileMenuOpen ( false )
359+ } }
329360 aria-label = 'Get started with Sim'
330361 >
331362 Get started
0 commit comments