Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Accordion fix #69

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 17 additions & 21 deletions components/learn-components/accord-guide.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,23 @@ export default class AccordGuide extends Component {

render() {
return (
<div>
<main>
<Accordion fluid styled>
<Accordion.Title>
<Icon name="dropdown" />
{this.props.title}
</Accordion.Title>
<Accordion.Content>
{this.state.markdown === '' ? (
<Loader active inline="centered" />
) : (
<div
dangerouslySetInnerHTML={{
__html: marked(this.state.markdown),
}}
/>
)}
</Accordion.Content>
</Accordion>
</main>
</div>
<Accordion fluid styled>
<Accordion.Title>
<Icon name="dropdown" />
{this.props.title}
</Accordion.Title>
<Accordion.Content>
{this.state.markdown === '' ? (
<Loader active inline="centered" />
) : (
<div
dangerouslySetInnerHTML={{
__html: marked(this.state.markdown),
}}
/>
)}
</Accordion.Content>
</Accordion>
);
}
}