Skip to content
Merged
Show file tree
Hide file tree
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
78 changes: 0 additions & 78 deletions components/sidebar/ProductCollapsibleSection.tsx

This file was deleted.

4 changes: 3 additions & 1 deletion components/sidebar/SidebarNav.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import cx from 'classnames'
import { useRouter } from 'next/router'

import { useMainContext } from 'components/context/MainContext'
import { SidebarProduct } from 'src/landings/components/SidebarProduct'
Expand All @@ -12,6 +13,7 @@ type Props = {

export const SidebarNav = ({ variant = 'full' }: Props) => {
const { currentProduct } = useMainContext()
const router = useRouter()
const isRestPage = currentProduct && currentProduct.id === 'rest'
// we need to roughly account for the site header height plus the height of
// the side nav header (which is taller when we show the API version picker)
Expand Down Expand Up @@ -51,7 +53,7 @@ export const SidebarNav = ({ variant = 'full' }: Props) => {
)}
style={{ width: 326, height: 'calc(100vh - 175px)', paddingBottom: sidebarPaddingBottom }}
>
<SidebarProduct />
<SidebarProduct key={router.asPath} />
</div>
</nav>
</div>
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@primer/css": "^21.0.7",
"@primer/octicons": "^19.5.0",
"@primer/octicons-react": "^19.5.0",
"@primer/react": "35.28.0",
"@primer/react": "35.29.0",
"accept-language-parser": "^1.5.0",
"ajv": "^8.11.0",
"ajv-errors": "^3.0.0",
Expand Down
Loading