Skip to content

Commit

Permalink
fix(api-reference): put the sidebar on this page
Browse files Browse the repository at this point in the history
  • Loading branch information
RobsonOlv committed Aug 9, 2022
1 parent 93a1946 commit b7238c8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
35 changes: 20 additions & 15 deletions src/pages/docs/api-reference/index.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
import Link from 'next/link'
import { Box } from '@vtex/brand-ui'
import { Flex } from '@vtex/brand-ui'

import Sidebar from 'components/sidebar'
import SidebarContextProvider from 'utils/contexts/sidebar'
import styles from 'styles/api-reference'

const APIReferencePage = () => {
return (
<Box sx={styles.container}>
<ul>
<li>
<Link href="/docs/api-reference/catalog">
<a>Catalog API</a>
</Link>
</li>
<li>
<Link href="/docs/api-reference/checkout">
<a>Checkout API</a>
</Link>
</li>
</ul>
</Box>
<SidebarContextProvider>
<Flex sx={styles.container}>
<Sidebar sectionSelected={'API Reference'} />
<ul>
<li>
<Link href="/docs/api-reference/catalog">
<a>Catalog API</a>
</Link>
</li>
<li>
<Link href="/docs/api-reference/checkout">
<a>Checkout API</a>
</Link>
</li>
</ul>
</Flex>
</SidebarContextProvider>
)
}

Expand Down
3 changes: 2 additions & 1 deletion src/styles/api-reference.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { SxStyleProp } from '@vtex/brand-ui'

const container: SxStyleProp = {
paddingTop: '5rem',
pt: '5rem',
background: '#FFFFFF',
}

export default {
Expand Down

0 comments on commit b7238c8

Please sign in to comment.