From 63a74b7e671d85b602b0190c7a18e6d6ad71341b Mon Sep 17 00:00:00 2001 From: nileshgulia1 Date: Wed, 4 Aug 2021 15:53:38 +0530 Subject: [PATCH] revert use of custom bg image --- src/PrivacyProtection/PrivacyProtection.jsx | 83 +++++++++------------ 1 file changed, 35 insertions(+), 48 deletions(-) diff --git a/src/PrivacyProtection/PrivacyProtection.jsx b/src/PrivacyProtection/PrivacyProtection.jsx index 04ad661..3cece83 100644 --- a/src/PrivacyProtection/PrivacyProtection.jsx +++ b/src/PrivacyProtection/PrivacyProtection.jsx @@ -28,15 +28,13 @@ function canShow(domain_key) { return cookie.load(key(domain_key)) === 'true'; } -export default ({ children, data = {}, block, background, ...rest }) => { +export default ({ children, data = {}, block, ...rest }) => { const { dataprotection = {} } = data; const [visible, setVisibility] = useState(false); - const defaultShow = canShow(dataprotection.privacy_cookie_key); + const defaultShow = canShow(data.privacy_cookie_key); const [show, setShow] = useState(defaultShow); const [remember, setRemember] = useState(defaultShow); - const bgImg = background ? background : ''; - return ( { @@ -50,59 +48,48 @@ export default ({ children, data = {}, block, background, ...rest }) => { {!dataprotection.enabled || show ? ( children ) : ( -
-
-
+
+
+
-
- -
+ -
- { - setRemember(checked); - }} - checked={remember} - /> -
+
+ +
-

- Your choice will be saved in a cookie managed by{' '} - {config.settings.ownDomain || '.eea.europa.eu'} that will - expire in {getExpDays()} days. -

+
+ { + setRemember(checked); + }} + checked={remember} + />
+ +

+ Your choice will be saved in a cookie managed by{' '} + {config.settings.ownDomain || '.eea.europa.eu'} that will + expire in {getExpDays()} days. +

)}