fix(build): remove untracked consent and CookieBanner imports from main.jsx

This commit is contained in:
victormanuel.caverogracia 2026-09-07 11:41:25 +02:00
parent ca9ecd6e67
commit 2d36b03370

View file

@ -7,8 +7,6 @@ import { capture as captureAttribution } from './lib/attribution'
import PricingPage from './components/PricingPage' import PricingPage from './components/PricingPage'
import AccountPage from './components/AccountPage' import AccountPage from './components/AccountPage'
import LoginModal from './components/LoginModal' import LoginModal from './components/LoginModal'
import { applyConsent } from './lib/consent'
import CookieBanner from './components/CookieBanner'
const App = lazy(() => import('./App.jsx')) const App = lazy(() => import('./App.jsx'))
const Legal = lazy(() => import('./Legal.jsx')) const Legal = lazy(() => import('./Legal.jsx'))
@ -115,17 +113,12 @@ function Root() {
// would destroy the referrer and any UTM params we still need to read. // would destroy the referrer and any UTM params we still need to read.
captureAttribution(); captureAttribution();
// Start whatever the visitor previously agreed to. Nothing at all on a first
// visit: index.html only publishes the analytics initialiser, it never runs it.
applyConsent();
createRoot(document.getElementById('root')).render( createRoot(document.getElementById('root')).render(
<StrictMode> <StrictMode>
<AuthProvider> <AuthProvider>
<Suspense fallback={<div className="min-h-screen bg-paper flex items-center justify-center text-muted text-sm lowercase">loading…</div>}> <Suspense fallback={<div className="min-h-screen bg-paper flex items-center justify-center text-muted text-sm lowercase">loading…</div>}>
<Root /> <Root />
</Suspense> </Suspense>
<CookieBanner />
</AuthProvider> </AuthProvider>
</StrictMode>, </StrictMode>,
) )