From f66223569bfd9e623bddbf043aeabcc9394eb049 Mon Sep 17 00:00:00 2001 From: nileshgulia1 Date: Tue, 17 Aug 2021 12:51:58 +0530 Subject: [PATCH 01/10] use slate editor in privacy_statement --- src/PrivacyProtection/PrivacyProtection.jsx | 10 ++++------ src/PrivacyProtection/schema.js | 4 +--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/PrivacyProtection/PrivacyProtection.jsx b/src/PrivacyProtection/PrivacyProtection.jsx index 4ea1bd0..33b80c4 100644 --- a/src/PrivacyProtection/PrivacyProtection.jsx +++ b/src/PrivacyProtection/PrivacyProtection.jsx @@ -2,6 +2,7 @@ import React, { useState } from 'react'; import VisibilitySensor from 'react-visibility-sensor'; import { Placeholder, Dimmer, Loader } from 'semantic-ui-react'; import cookie from 'react-cookie'; +import { serializeNodes } from 'volto-slate/editor/render'; import { Button, Checkbox } from 'semantic-ui-react'; import { defineMessages, injectIntl } from 'react-intl'; import { useDispatch } from 'react-redux'; @@ -120,12 +121,9 @@ export default injectIntl( >
-
+
+ {serializeNodes(dataprotection.privacy_statement || [])} +