File tree Expand file tree Collapse file tree
packages/shared/src/features/onboarding Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ export const FunnelStepper = ({
9999 onNavigation : trackOnNavigate ,
100100 } ) ;
101101 const { transition : sendTransition } = useStepTransition ( session . id ) ;
102+ const isCookieBannerActive = ! ! funnel ?. parameters ?. cookieConsent ?. show ;
102103 const { showBanner, ...cookieConsentProps } = useFunnelCookies ( {
103104 defaultOpen : showCookieBanner ,
104105 trackFunnelEvent,
@@ -146,7 +147,7 @@ export const FunnelStepper = ({
146147 onScrollCapture = { trackOnScroll }
147148 className = "flex min-h-dvh flex-col"
148149 >
149- { showBanner && (
150+ { isCookieBannerActive && showBanner && (
150151 < CookieConsent key = "cookie-consent" { ...cookieConsentProps } />
151152 ) }
152153 < FunnelStepBackground step = { step } >
Original file line number Diff line number Diff line change @@ -260,7 +260,11 @@ export type FunnelPosition = {
260260export interface FunnelJSON {
261261 id : string ;
262262 version : number ;
263- parameters : FunnelStepParameters ;
263+ parameters : FunnelStepParameters < {
264+ cookieConsent : {
265+ show : boolean ;
266+ } ;
267+ } > ;
264268 entryPoint : FunnelStep [ 'id' ] ;
265269 chapters : Array < FunnelChapter > ;
266270}
You can’t perform that action at this time.
0 commit comments