️(frontend) fix missing import type in Rating.tsx

Replace runtime import of PostHog with a type-only import to
avoid loading the module at runtime.
This commit is contained in:
lebaudantoine
2026-03-03 19:32:20 +01:00
committed by aleb_the_flash
parent 41b171da68
commit 6e3845d0c1

View File

@@ -4,7 +4,7 @@ import { cva } from '@/styled-system/css'
import { useTranslation } from 'react-i18next'
import { styled, VStack } from '@/styled-system/jsx'
import { usePostHog } from 'posthog-js/react'
import { PostHog } from 'posthog-js'
import type { PostHog } from 'posthog-js'
import { Button as RACButton } from 'react-aria-components'
import { useIsAnalyticsEnabled } from '@/features/analytics/hooks/useIsAnalyticsEnabled'