add - cookie consent
This commit is contained in:
1 parent
deb3cc922b
commit
10e415e53e
3 files changed
+41
No files matched your search
@@ -2,6 +2,8 @@ import React, { ReactNode } from "react";
|
||||
import NavBar from "./NavBar";
|
||||
import Footer from "./Footer";
|
||||
|
||||
import CookieConsent from "react-cookie-consent";
|
||||
|
||||
type Props = {
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
@@ -10,6 +12,11 @@ const Layout = ({ children }: Props) =>
|
||||
<div className="layout-container">
|
||||
<NavBar />
|
||||
{children}
|
||||
<CookieConsent
|
||||
buttonText="Je comprends"
|
||||
style={{ zIndex: "100000", justifyContent:"center" }}
|
||||
buttonStyle={{color:"white",background:"#76AE0D"}}>
|
||||
Ce site web utilise des cookies pour améliorer l'expérience de l'utilisateur.</CookieConsent>
|
||||
<Footer />
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user