Skip to content

Commit

Permalink
revert slate widget addition
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Aug 16, 2021
1 parent b9a16f7 commit 4032799
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
20 changes: 6 additions & 14 deletions src/PrivacyProtection/PrivacyProtection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import cookie from 'react-cookie';
import { Button, Checkbox } from 'semantic-ui-react';
import { defineMessages, injectIntl } from 'react-intl';
import { useDispatch } from 'react-redux';
import { serializeNodes } from 'volto-slate/editor/render';
import { toast } from 'react-toastify';
import config from '@plone/volto/registry';
import '../css/embed-styles.css';
Expand Down Expand Up @@ -121,19 +120,12 @@ export default injectIntl(
>
<div className="overlay">
<div className="wrapped">
{typeof dataprotection.privacy_statement === 'string' ? (
<div
className="privacy-statement"
dangerouslySetInnerHTML={{
__html: dataprotection.privacy_statement,
}}
/>
) : (
<div className="privacy-statement">
{serializeNodes(dataprotection.privacy_statement || [])}
</div>
)}

<div
className="privacy-statement"
dangerouslySetInnerHTML={{
__html: dataprotection.privacy_statement,
}}
/>
<div className="privacy-button">
<Button
primary
Expand Down
4 changes: 3 additions & 1 deletion src/PrivacyProtection/schema.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import config from '@plone/volto/registry';

export const ProtectionSchema = () => ({
title: 'Data Protection',

Expand All @@ -18,7 +20,7 @@ export const ProtectionSchema = () => ({
privacy_statement: {
title: 'Privacy statement',
description: 'Short notification text',
widget: 'slate_richtext',
widget: config.settings.defaultBlockType, // TODO: is it really applied?
},
privacy_cookie_key: {
title: 'Privacy cookie key',
Expand Down

0 comments on commit 4032799

Please sign in to comment.