forked from crowetic/commerce
fix cookie consent banner missing on deployment
This commit is contained in:
parent
e6f411f671
commit
8393b3dd5d
@ -6,12 +6,20 @@ interface Props {
|
|||||||
className?: string
|
className?: string
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
|
hide?: boolean
|
||||||
action?: React.ReactNode
|
action?: React.ReactNode
|
||||||
}
|
}
|
||||||
|
|
||||||
const Featurebar: FC<Props> = ({ title, description, className, action }) => {
|
const Featurebar: FC<Props> = ({
|
||||||
|
title,
|
||||||
|
description,
|
||||||
|
className,
|
||||||
|
action,
|
||||||
|
hide,
|
||||||
|
}) => {
|
||||||
const rootClassName = cn(
|
const rootClassName = cn(
|
||||||
'transition-transform transform duration-500 ease-out p-6 bg-primary text-base text-sm md:flex flex-row justify-center items-center font-medium fixed bottom-0 w-full z-10',
|
'transition-transform transform duration-500 ease-out p-6 bg-primary text-base text-sm md:flex flex-row justify-center items-center font-medium fixed bottom-0 w-full z-10',
|
||||||
|
{ 'translate-y-full': hide },
|
||||||
className
|
className
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
|
@ -38,7 +38,7 @@ const Layout: FC<Props> = ({ children, pageProps }) => {
|
|||||||
Accept cookies
|
Accept cookies
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
className={cn({ 'translate-y-full': acceptedCookies })}
|
className={cn({ ['translate-y-full']: acceptedCookies })}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</CommerceProvider>
|
</CommerceProvider>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user