Skip to content

Commit

Permalink
fix: hide header and footer correctly on document pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed Jun 1, 2024
1 parent 589bf00 commit d7efc9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Footer({ locale }: Locale) {

const show =
path.startsWith(`/documentation/py`) ||
path.startsWith(`/documentation/py`) ||
path.startsWith(`/documentation/js`) ||
path.startsWith(`${route}/documentation/py`) ||
path.startsWith(`${route}/documentation/js`);

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function Header({ locale }: Locale) {

const show =
path.startsWith(`/documentation/py`) ||
path.startsWith(`/documentation/py`) ||
path.startsWith(`/documentation/js`) ||
path.startsWith(`${route}/documentation/py`) ||
path.startsWith(`${route}/documentation/js`);

Expand Down

0 comments on commit d7efc9c

Please sign in to comment.