From a1db330b145d15ddda0990711776c309d0ab55cb Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 31 Dec 2020 20:18:57 -0600 Subject: [PATCH] Accordion: use children instead of content --- app/soapbox/features/public_timeline/index.js | 37 +++++++++---------- app/soapbox/features/soapbox_config/index.js | 21 +++++------ .../features/ui/components/accordion.js | 6 +-- 3 files changed, 31 insertions(+), 33 deletions(-) diff --git a/app/soapbox/features/public_timeline/index.js b/app/soapbox/features/public_timeline/index.js index 9173274fb..0708ca1c1 100644 --- a/app/soapbox/features/public_timeline/index.js +++ b/app/soapbox/features/public_timeline/index.js @@ -92,27 +92,26 @@ class CommunityTimeline extends React.PureComponent {
} - content={( - - - - ), - }} - /> - )} expanded={explanationBoxExpanded} onToggle={this.toggleExplanationBox} - /> + > + + + + ), + }} + /> +
- - - )} expanded={this.state.jsonEditorExpanded} onToggle={this.toggleJSONEditor} - /> + > +
+ +
+
- {content} + {children}
);