Skip to content

Commit 5640a8f

Browse files
committed
Fix pagination in the docs
1 parent 3b7de6d commit 5640a8f

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

packages/docs/src/components/readme-badges.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ export default function ReadmeBadges() {
4141
alt="Contributors"
4242
/>
4343
</a>
44-
<a href="https://github.com/badges/shields/pulse">
45-
<img
46-
src="https://img.shields.io/github/commit-activity/m/system-ui/theme-ui"
47-
alt="Activity"
48-
/>
49-
</a>
5044
<a href="https://badgen.net/bundlephobia/minzip/theme-ui">
5145
<img src="https://badgen.net/bundlephobia/minzip/theme-ui" alt="Size" />
5246
</a>
@@ -68,12 +62,6 @@ export default function ReadmeBadges() {
6862
alt="Join our Discord community"
6963
/>
7064
</a>
71-
<a href="https://github.com/system-ui/theme-ui/actions?query=workflow%3ACI">
72-
<img
73-
src="https://github.com/system-ui/theme-ui/workflows/CI/badge.svg?branch=stable"
74-
alt="Build Status"
75-
/>
76-
</a>
7765
<a href="https://dashboard.cypress.io/projects/fmfid1/runs">
7866
<img
7967
src="https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/fmfid1/stable&logo=cypress"

packages/docs/src/components/sidenav.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,16 @@ export const Pagination = ({
341341
display: 'flex',
342342
}}
343343
>
344-
{hasPagination && previous && React.isValidElement(previous) && (
344+
{hasPagination && previous && (
345345
<PaginationLink href={previous[1]} label="Previous:">
346346
{previous[0]}
347347
</PaginationLink>
348348
)}
349349
<div sx={{ mx: 'auto' }} />
350-
{hasPagination && next && React.isValidElement(next) && (
351-
<PaginationLink label="Next:">{next[0]}</PaginationLink>
350+
{hasPagination && next && (
351+
<PaginationLink href={next[1]} label="Next:">
352+
{next[0]}
353+
</PaginationLink>
352354
)}
353355
</div>
354356
)

packages/e2e/integration/docs-navigation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ describe('docs navigation', () => {
2222
'Migrating',
2323
'Edit the page on GitHub',
2424
'Previous:Getting Started with Gatsby',
25+
'Next:The sx Prop',
2526
]
2627

2728
for (const s of expectedLinkTexts) {

0 commit comments

Comments
 (0)