Skip to content

Commit

Permalink
docs: fix prev/next pagination (#8697)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhan committed Jul 1, 2022
1 parent ca432f7 commit b88b33e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/next/components/Pagination.tsx
Expand Up @@ -2,10 +2,10 @@ import { flatten, useNavigation } from "util/useNavigation";

import Link from "./Link";
import React from "react";
import { useRouter } from "next/router";
import { useVersion } from "../util/useVersion";

const Pagination = () => {
const { asPath } = useRouter();
const { asPath } = useVersion();
const navigation = useNavigation();
const flattenedNavigation = flatten(navigation).filter(
(n: { path: any }) => n.path
Expand Down

1 comment on commit b88b33e

@vercel
Copy link

@vercel vercel bot commented on b88b33e Jul 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.