guides: push env setup to top

This commit is contained in:
Matilde Park 2022-06-29 15:28:13 -07:00
parent b96de773df
commit f7be61a345

View File

@ -148,7 +148,6 @@ const pageTree = (thisLink, tree, level = 0) => {
<p className="text-xs uppercase font-semibold text-wall-400 mt-4">
{tree.title}
</p>
{childPages(thisLink, tree.children, level)}
{tree.pages.map(({ title, slug }) => {
const href = join(thisLink, slug);
const isSelected = router.asPath === href;
@ -167,6 +166,7 @@ const pageTree = (thisLink, tree, level = 0) => {
</li>
);
})}
{childPages(thisLink, tree.children, level)}
</>
);
}