Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit ff6b4eb

Browse files
committed
[deps] Update nextra to latest
1 parent 43488a3 commit ff6b4eb

File tree

10 files changed

+649
-442
lines changed

10 files changed

+649
-442
lines changed

apps/nextra/components/api-reference/ApiReference.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { ApiReferenceReact } from "@scalar/api-reference-react";
44
import { useTheme } from "nextra-theme-docs";
55
import { useData } from "nextra/hooks";
6-
import { useRouter } from "next/router";
6+
import { useRouter } from "nextra/hooks";
77
import {
88
ChangeEventHandler,
99
cloneElement,

apps/nextra/components/move-reference/MoveReference.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React, { useEffect, useRef, useState } from "react";
44
import { Playground } from "nextra/components";
55
import { usePathname } from "next/navigation";
6-
import { useRouter } from "next/router";
6+
import { useRouter } from "nextra/hooks";
77
import { ModuleSelectContainer } from "./ModuleSelectContainer";
88
import {
99
MoveReferenceContext,

apps/nextra/components/move-reference/MoveReferenceProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ReadonlyURLSearchParams } from "next/navigation";
22
import { createContext, useCallback, useContext } from "react";
3-
import { useRouter } from "next/router";
3+
import { useRouter } from "nextra/hooks";
44
import { useSearchParams } from "next/navigation";
55
import { Branch, BRANCHES, DEFAULT_BRANCH } from "./shared";
66

apps/nextra/pages/404.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import LocaleError from "@components/error/LocaleError";
22
import { Error } from "@components/index";
33
import Link from "next/link";
4-
import { useRouter } from "next/router";
4+
import { useRouter } from "nextra/hooks";
55
import { useEffect, useState } from "react";
66
import { checkIfEnglishPathAvailable } from "utils/locale";
77

apps/nextra/pages/en/build/smart-contracts/_meta.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ export default {
101101
scripts: {
102102
title: "Scripts",
103103
},
104-
patterns: {
105-
display: "hidden",
106-
title: "Patterns",
107-
},
108104
prover: {
109105
title: "Move Prover",
110106
},
@@ -127,13 +123,4 @@ export default {
127123
linter: {
128124
title: "Linter",
129125
},
130-
"learn-move": {
131-
display: "hidden",
132-
},
133-
"aptos-standards": {
134-
display: "hidden",
135-
},
136-
tokens: {
137-
display: "hidden",
138-
},
139126
};

0 commit comments

Comments
 (0)