Skip to content

Commit 1ce98a3

Browse files
hsiaoyu-chousapegin
authored andcommitted
Fix: Correct order of components and sections (styleguidist#858)
Closes styleguidist#854.
1 parent a086302 commit 1ce98a3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/rsg-components/Section/SectionRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export function SectionRenderer(allProps) {
2222
)}
2323
{description && <Markdown text={description} />}
2424
{content}
25-
{components}
2625
{sections}
26+
{components}
2727
</section>
2828
);
2929
}

src/rsg-components/Section/__snapshots__/Section.spec.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ exports[`render should render section 1`] = `
6767
}
6868
name="Foo"
6969
/>
70-
<Components
71-
components={Array []}
72-
depth={3}
73-
/>
7470
<Sections
7571
depth={3}
7672
sections={Array []}
7773
/>
74+
<Components
75+
components={Array []}
76+
depth={3}
77+
/>
7878
</section>
7979
`;
8080

0 commit comments

Comments
 (0)