From 4198448a1cc02aa13ed5d9efeeb5880e6ae5fbdd Mon Sep 17 00:00:00 2001 From: nileshgulia1 Date: Wed, 4 Nov 2020 17:29:16 +0530 Subject: [PATCH] text block inside accordion --- .../manage/Blocks/Accordion/AccordionEdit.jsx | 2 +- .../manage/Blocks/Accordion/Edit.jsx | 22 +++++++++---------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/components/manage/Blocks/Accordion/AccordionEdit.jsx b/src/components/manage/Blocks/Accordion/AccordionEdit.jsx index c770777..04551e9 100644 --- a/src/components/manage/Blocks/Accordion/AccordionEdit.jsx +++ b/src/components/manage/Blocks/Accordion/AccordionEdit.jsx @@ -37,7 +37,7 @@ export default ({ data, onChange, children, variants }) => { duration={500} height={activeIndex === 0 ? 'auto' : 0} > - dsvsdvs + {children} diff --git a/src/components/manage/Blocks/Accordion/Edit.jsx b/src/components/manage/Blocks/Accordion/Edit.jsx index 6ba0c51..be30fb3 100644 --- a/src/components/manage/Blocks/Accordion/Edit.jsx +++ b/src/components/manage/Blocks/Accordion/Edit.jsx @@ -41,17 +41,15 @@ const Edit = (props) => { return (
- {Object.keys(data).length === 1 ? ( - { - onChangeBlock(block, { - ...data, - ...this.createFrom(initialData), - }); - }} - /> - ) : ( + { + onChangeBlock(block, { + ...data, + ...this.createFrom(initialData), + }); + }} + > { }} pathname={pathname} /> - )} +
); };