Skip to content

Commit

Permalink
Fix pagination in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Jun 15, 2023
1 parent 3b7de6d commit 7e228f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
12 changes: 0 additions & 12 deletions packages/docs/src/components/readme-badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ export default function ReadmeBadges() {
alt="Contributors"
/>
</a>
<a href="https://github.com/badges/shields/pulse">
<img
src="https://img.shields.io/github/commit-activity/m/system-ui/theme-ui"
alt="Activity"
/>
</a>
<a href="https://badgen.net/bundlephobia/minzip/theme-ui">
<img src="https://badgen.net/bundlephobia/minzip/theme-ui" alt="Size" />
</a>
Expand All @@ -68,12 +62,6 @@ export default function ReadmeBadges() {
alt="Join our Discord community"
/>
</a>
<a href="https://github.com/system-ui/theme-ui/actions?query=workflow%3ACI">
<img
src="https://github.com/system-ui/theme-ui/workflows/CI/badge.svg?branch=stable"
alt="Build Status"
/>
</a>
<a href="https://dashboard.cypress.io/projects/fmfid1/runs">
<img
src="https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/fmfid1/stable&logo=cypress"
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/src/components/sidenav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,13 @@ export const Pagination = ({
display: 'flex',
}}
>
{hasPagination && previous && React.isValidElement(previous) && (
{hasPagination && previous && (
<PaginationLink href={previous[1]} label="Previous:">
{previous[0]}
</PaginationLink>
)}
<div sx={{ mx: 'auto' }} />
{hasPagination && next && React.isValidElement(next) && (
{hasPagination && next && (
<PaginationLink label="Next:">{next[0]}</PaginationLink>
)}
</div>
Expand Down
1 change: 1 addition & 0 deletions packages/e2e/integration/docs-navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('docs navigation', () => {
'Migrating',
'Edit the page on GitHub',
'Previous:Getting Started with Gatsby',
'Next:The sx Prop',
]

for (const s of expectedLinkTexts) {
Expand Down

0 comments on commit 7e228f6

Please sign in to comment.