Skip to content

Commit

Permalink
chore: update to reacto router 7
Browse files Browse the repository at this point in the history
  • Loading branch information
aradzie committed Nov 27, 2024
1 parent 710138b commit 3ccd818
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 40 deletions.
75 changes: 42 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-intl": "^7.0.1",
"react-router": "^6.28.0",
"react-router-dom": "^6.28.0",
"react-router": "^7.0.1",
"tslib": "^2.8.1",
"xml-js": "^1.6.11",
"zod": "^3.23.8"
Expand Down
2 changes: 1 addition & 1 deletion packages/keybr-pages-browser/lib/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { querySelector } from "@keybr/widget";
import { lazy, Suspense } from "react";
import { createRoot } from "react-dom/client";
import { useIntl } from "react-intl";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import { BrowserRouter, Route, Routes } from "react-router";
import { IntlLoader } from "./loader/IntlLoader.tsx";
import { Template } from "./Template.tsx";
import { ThemeProvider } from "./themes/ThemeProvider.tsx";
Expand Down
2 changes: 1 addition & 1 deletion packages/keybr-pages-browser/lib/NavMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Icon } from "@keybr/widget";
import { clsx } from "clsx";
import { type ReactNode } from "react";
import { useIntl } from "react-intl";
import { NavLink } from "react-router-dom";
import { NavLink } from "react-router";
import * as styles from "./NavMenu.module.less";
import { SubMenu } from "./SubMenu.tsx";
import { ThemeSwitcher } from "./themes/ThemeSwitcher.tsx";
Expand Down
2 changes: 1 addition & 1 deletion packages/keybr-pages-browser/lib/SubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { isPremiumUser, Pages, usePageData } from "@keybr/pages-shared";
import { Link as StaticLink } from "@keybr/widget";
import { FormattedMessage, useIntl } from "react-intl";
import { Link as RouterLink } from "react-router-dom";
import { Link as RouterLink } from "react-router";
import * as styles from "./SubMenu.module.less";

export function SubMenu({ currentPath }: { readonly currentPath: string }) {
Expand Down
2 changes: 1 addition & 1 deletion packages/keybr-pages-shared/lib/UserName.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { clsx } from "clsx";
import { type ReactNode } from "react";
import { useIntl } from "react-intl";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import { Avatar } from "./Avatar.tsx";
import { type AnyUser } from "./types.ts";
import * as styles from "./UserName.module.less";
Expand Down
2 changes: 1 addition & 1 deletion packages/page-help/lib/ExampleLink.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Pages } from "@keybr/pages-shared";
import { type ReactNode } from "react";
import { Link } from "react-router-dom";
import { Link } from "react-router";

export function ExampleLink({
index,
Expand Down

0 comments on commit 3ccd818

Please sign in to comment.