fix(build): remove untracked consent and CookieBanner imports from main.jsx
This commit is contained in:
parent
ca9ecd6e67
commit
2d36b03370
1 changed files with 0 additions and 7 deletions
|
|
@ -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>,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue