Skip to content

Commit

Permalink
text block inside accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Nov 4, 2020
1 parent df5678f commit 4198448
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/Accordion/AccordionEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default ({ data, onChange, children, variants }) => {
duration={500}
height={activeIndex === 0 ? 'auto' : 0}
>
dsvsdvs
{children}
</AnimateHeight>
</Accordion.Content>
</React.Fragment>
Expand Down
22 changes: 10 additions & 12 deletions src/components/manage/Blocks/Accordion/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,15 @@ const Edit = (props) => {

return (
<section className="section-block">
{Object.keys(data).length === 1 ? (
<AccordionEdit
data={data}
onChange={(initialData) => {
onChangeBlock(block, {
...data,
...this.createFrom(initialData),
});
}}
/>
) : (
<AccordionEdit
data={data}
onChange={(initialData) => {
onChangeBlock(block, {
...data,
...this.createFrom(initialData),
});
}}
>
<BlocksForm
metadata={metadata}
properties={properties}
Expand Down Expand Up @@ -81,7 +79,7 @@ const Edit = (props) => {
}}
pathname={pathname}
/>
)}
</AccordionEdit>
</section>
);
};
Expand Down

0 comments on commit 4198448

Please sign in to comment.