Skip to content

Commit

Permalink
chore: refactor nav props
Browse files Browse the repository at this point in the history
  • Loading branch information
kendallstrautman committed Aug 6, 2020
1 parent 29097e1 commit 19672f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pages/guides/index.tsx
@@ -1,11 +1,10 @@
import { NextSeo } from 'next-seo'
import React from 'react'

import { getGuideNavProps } from 'utils/guide_helpers'
import { getMarkdownPreviewProps } from 'utils/getMarkdownPreviewProps'
import { getDocsNav } from 'utils/docs/getDocProps'
import { createTocListener } from 'utils'
import { DocsLayout, Wrapper, MarkdownContent } from 'components/layout'
import { DocsLayout, MarkdownContent } from 'components/layout'
import {
DocGridToc,
DocGridContent,
Expand Down Expand Up @@ -73,14 +72,14 @@ export const getStaticProps = async ctx => {
ctx.preview,
ctx.previewData
)
const navItems = await getDocsNav(preview, {})

return {
props: {
slug: '/guides',
markdownFile,
tocItems,
allGuides: await getGuideNavProps(),
navItems: await getDocsNav(preview, {}),
navItems: navItems.data,
},
}
}

0 comments on commit 19672f8

Please sign in to comment.