Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import dynamic from 'next/dynamic'
import { CookieSettingsButton } from 'src/custom/docs/components/gdpr/_components/CookieSettingsButton/CookieSettingsButton'
import { CookieSettingsDialog } from 'src/custom/docs/components/gdpr/_components/CookieSettingsDialog/CookieSettingsDialog'
Expand All @@ -12,7 +14,9 @@ type CookieBannerProps = {

const CookieBanner = dynamic<CookieBannerProps>(
() =>
import('src/custom/docs/components/gdpr/_components/CookieBanner/CookieBanner').then((module) => module.CookieBanner),
import('src/custom/docs/components/gdpr/_components/CookieBanner/CookieBanner').then(
(module) => module.CookieBanner
),
{ ssr: false }
)

Expand Down Expand Up @@ -44,7 +48,14 @@ export function CookieConsentManager() {
}

if (isCookieBannerVisible) {
return <CookieBanner isOpen onAccept={acceptAll} onReject={rejectNonEssential} onSettings={openSettings} />
return (
<CookieBanner
isOpen
onAccept={acceptAll}
onReject={rejectNonEssential}
onSettings={openSettings}
/>
)
}

return null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { createContext } from 'react'
import { type CookieConsent } from '../types'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import { useContext } from 'react'
import { CookieConsentContext, type CookieConsentContextType } from './CookieConsentShared'

Expand Down