Skip to content

Commit 77f4c9a

Browse files
authored
Merge pull request #1719 from skaut/react-router-v7
Updated to react-router v7
2 parents 9425946 + d757e3d commit 77f4c9a

34 files changed

+2631
-2994
lines changed

packages/frontend/package-lock.json

Lines changed: 2498 additions & 2971 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"react-dom": "^18.3.1",
3737
"react-icons": "^5.4.0",
3838
"react-markdown": "^9.0.1",
39-
"react-router-dom": "^6.28.0",
39+
"react-router": "^7.0.1",
4040
"remark-gfm": "^4.0.0",
4141
"string-to-color": "^2.2.2",
4242
"swr": "^2.3.0"

packages/frontend/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @jsxImportSource @emotion/react */
22
import type React from "react";
33

4-
import { Route, Routes } from "react-router-dom";
4+
import { Route, Routes } from "react-router";
55
import useSWR from "swr";
66

77
import type { ProjectListings } from "./interfaces/ProjectListings";

packages/frontend/src/components/ArticleBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type React from "react";
22

33
import styled from "@emotion/styled";
44
import ReactMarkdown from "react-markdown";
5-
import { Link } from "react-router-dom";
5+
import { Link } from "react-router";
66
import remarkGfm from "remark-gfm";
77

88
import { ColoredTag } from "./ColoredTag";

packages/frontend/src/components/Container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type React from "react";
22

33
import { Global } from "@emotion/react";
44
import styled from "@emotion/styled";
5-
import { Link, Outlet } from "react-router-dom";
5+
import { Link, Outlet } from "react-router";
66

77
import { globalStyles } from "../globalStyles";
88
import logo from "../images/logo.svg";

packages/frontend/src/components/IssuesList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type React from "react";
33

44
import { css } from "@emotion/react";
55
import ReactMarkdown from "react-markdown";
6-
import { Link } from "react-router-dom";
6+
import { Link } from "react-router";
77
import remarkGfm from "remark-gfm";
88

99
import type { Project } from "../interfaces/Project";

packages/frontend/src/components/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type React from "react";
22

33
import styled from "@emotion/styled";
4-
import { NavLink } from "react-router-dom";
4+
import { NavLink } from "react-router";
55

66
import { theme } from "../theme";
77

packages/frontend/src/components/ScrollToTop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect } from "react";
2-
import { useLocation } from "react-router-dom";
2+
import { useLocation } from "react-router";
33

44
export const ScrollToTop = (): null => {
55
const location = useLocation();

packages/frontend/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import { createRoot } from "react-dom/client";
3-
import { BrowserRouter as Router } from "react-router-dom";
3+
import { BrowserRouter as Router } from "react-router";
44

55
import { App } from "./App";
66

packages/frontend/src/pages/IssueDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type React from "react";
44
import { css } from "@emotion/react";
55
import { AiFillGithub } from "react-icons/ai";
66
import ReactMarkdown from "react-markdown";
7-
import { Link, useParams } from "react-router-dom";
7+
import { Link, useParams } from "react-router";
88
import remarkGfm from "remark-gfm";
99

1010
import type { ProjectListings } from "../interfaces/ProjectListings";

0 commit comments

Comments
 (0)