Skip to content

Commit

Permalink
Update react-router to 7.1.1
Browse files Browse the repository at this point in the history
Updates the dependency "react-router-dom" to
"react-router".
  • Loading branch information
Arnei committed Jan 6, 2025
1 parent 277e62a commit a4097a5
Show file tree
Hide file tree
Showing 20 changed files with 63 additions and 75 deletions.
99 changes: 44 additions & 55 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 @@ -10,7 +10,6 @@
"@mui/x-date-pickers": "^7.23.1",
"@reduxjs/toolkit": "^2.5.0",
"@types/dompurify": "^3.0.5",
"@types/react-router-dom": "^5.3.3",
"array-move": "^4.0.0",
"axios": "^1.7.9",
"bourbon": "^7.3.0",
Expand All @@ -34,7 +33,7 @@
"react-i18next": "^15.4.0",
"react-icons": "^5.3.0",
"react-redux": "^9.2.0",
"react-router-dom": "^6.27.0",
"react-router": "^7.1.1",
"react-select": "^5.8.0",
"redux": "^5.0.1",
"redux-persist": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect } from "react";
import { HashRouter, Navigate, Route, Routes } from "react-router-dom";
import { HashRouter, Navigate, Route, Routes } from "react-router";
import "./App.scss";
import Events from "./components/events/Events";
import Recordings from "./components/recordings/Recordings";
Expand Down
2 changes: 1 addition & 1 deletion src/components/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import NavBar from "./NavBar";
import Footer from "./Footer";
import MainNav from "./shared/MainNav";
import { useTranslation } from "react-i18next";
import { Link, useLocation } from "react-router-dom";
import { Link, useLocation } from "react-router";
import cn from "classnames";
import axios from 'axios';
import i18n from "../i18n/i18n";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
getUserInformation,
} from "../selectors/userInfoSelectors";
import { useAppSelector } from "../store";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import { useTranslation } from "react-i18next";
import { Tooltip } from "./shared/Tooltip";

Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import i18n from "../i18n/i18n";
import languages from "../i18n/languages";
import opencastLogo from "../img/opencast-white.svg?url";
Expand Down
2 changes: 1 addition & 1 deletion src/components/configuration/Themes.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import MainNav from "../shared/MainNav";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import cn from "classnames";
import TableFilters from "../shared/TableFilters";
import Table from "../shared/Table";
Expand Down
2 changes: 1 addition & 1 deletion src/components/events/Events.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import cn from "classnames";
import { Link, useLocation } from "react-router-dom";
import { Link, useLocation } from "react-router";
import TableFilters from "../shared/TableFilters";
import MainNav from "../shared/MainNav";
import Stats from "../shared/Stats";
Expand Down
2 changes: 1 addition & 1 deletion src/components/events/Series.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";
import MainNav from "../shared/MainNav";
import { useTranslation } from "react-i18next";
import cn from "classnames";
import { Link, useLocation } from "react-router-dom";
import { Link, useLocation } from "react-router";
import TableFilters from "../shared/TableFilters";
import Table from "../shared/Table";
import Notifications from "../shared/Notifications";
Expand Down
2 changes: 1 addition & 1 deletion src/components/events/partials/SeriesTitleCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import { useTranslation } from "react-i18next";
import { loadEventsIntoTable } from "../../../thunks/tableThunks";
import { setSpecificEventFilter } from "../../../slices/tableFilterSlice";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import { useAppDispatch } from "../../../store";
import { Tooltip } from "../../shared/Tooltip";
import { Series } from "../../../slices/seriesSlice";
Expand Down
2 changes: 1 addition & 1 deletion src/components/recordings/Recordings.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react";
import MainNav from "../shared/MainNav";
import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import cn from "classnames";
import TableFilters from "../shared/TableFilters";
import Table from "../shared/Table";
Expand Down
2 changes: 1 addition & 1 deletion src/components/recordings/partials/RecordingsNameCell.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import { setSpecificEventFilter } from "../../../slices/tableFilterSlice";
import { loadEventsIntoTable } from "../../../thunks/tableThunks";
import { useAppDispatch } from "../../../store";
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/MainNav.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { useTranslation } from "react-i18next";
import { Link, useNavigate } from "react-router-dom";
import { Link, useNavigate } from "react-router";
import {
loadAclsIntoTable,
loadEventsIntoTable,
Expand Down
2 changes: 1 addition & 1 deletion src/components/statistics/Statistics.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import { useTranslation } from "react-i18next";
import cn from "classnames";
import Header from "../Header";
Expand Down
2 changes: 1 addition & 1 deletion src/components/systems/Jobs.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import { useTranslation } from "react-i18next";
import cn from "classnames";
import TableFilters from "../shared/TableFilters";
Expand Down
2 changes: 1 addition & 1 deletion src/components/systems/Servers.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import MainNav from "../shared/MainNav";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import cn from "classnames";
import TableFilters from "../shared/TableFilters";
import Table from "../shared/Table";
Expand Down
2 changes: 1 addition & 1 deletion src/components/systems/Services.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import cn from "classnames";
import TableFilters from "../shared/TableFilters";
import Table from "../shared/Table";
Expand Down
2 changes: 1 addition & 1 deletion src/components/users/Acls.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import MainNav from "../shared/MainNav";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import cn from "classnames";
import TableFilters from "../shared/TableFilters";
import Table from "../shared/Table";
Expand Down
2 changes: 1 addition & 1 deletion src/components/users/Groups.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import MainNav from "../shared/MainNav";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import cn from "classnames";
import TableFilters from "../shared/TableFilters";
import Table from "../shared/Table";
Expand Down
2 changes: 1 addition & 1 deletion src/components/users/Users.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import { Link } from "react-router";
import cn from "classnames";
import MainNav from "../shared/MainNav";
import TableFilters from "../shared/TableFilters";
Expand Down

0 comments on commit a4097a5

Please sign in to comment.