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

Commit fa0244f

Browse files
committed
chore: use react-router-dom instead of react-router
1 parent 1ea0115 commit fa0244f

7 files changed

Lines changed: 7 additions & 11 deletions

File tree

src/layouts/AdminLayout/AdminLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useContext } from "react";
22
import Box from "@mui/material/Box";
3-
import { useLocation } from "react-router";
3+
import { useLocation } from "react-router-dom";
44
import { AuthContext } from "~/pages/auth/Auth.context";
55
import Error404 from "~/components/Errors/Error404";
66
import Card from "~/components/Card";

src/layouts/AppLayout/AppMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useMemo } from "react";
2-
import { useLocation } from "react-router";
2+
import { useLocation } from "react-router-dom";
33
import Box from "@mui/material/Box";
44
import ArrowBack from "@mui/icons-material/ArrowBack";
55
import AppName from "~/components/AppName";

src/layouts/AppLayout/EnvMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useContext, useMemo } from "react";
2-
import { useNavigate, useLocation } from "react-router";
2+
import { useNavigate, useLocation } from "react-router-dom";
33
import Box from "@mui/material/Box";
44
import Select from "@mui/material/Select";
55
import MenuItem from "@mui/material/MenuItem";

src/layouts/TeamLayout/TeamNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useMemo, useContext } from "react";
2-
import { useLocation } from "react-router";
2+
import { useLocation } from "react-router-dom";
33
import Box from "@mui/material/Box";
44
import { AuthContext } from "~/pages/auth/Auth.context";
55
import MenuLink from "~/components/MenuLink";

src/pages/apps/[id]/environments/Environments.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useContext, useState } from "react";
2-
import { useLocation } from "react-router";
2+
import { useLocation } from "react-router-dom";
33
import Box from "@mui/material/Box";
44
import Link from "@mui/material/Link";
55
import Typography from "@mui/material/Typography";

src/pages/auth/Auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useContext, useEffect } from "react";
2-
import { useNavigate, useLocation } from "react-router";
2+
import { useNavigate, useLocation } from "react-router-dom";
33
import RollbackIcon from "@mui/icons-material/RefreshOutlined";
44
import ShieldIcon from "@mui/icons-material/Shield";
55
import CloudIcon from "@mui/icons-material/Cloud";

src/testing/helpers.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ export const renderWithRouter = ({
1919
},
2020
]);
2121

22-
return render(
23-
// <MemoryRouter initialEntries={initialEntries} initialIndex={0}>
24-
<Stub initialEntries={initialEntries} initialIndex={0} />
25-
// </MemoryRouter>
26-
);
22+
return render(<Stub initialEntries={initialEntries} initialIndex={0} />);
2723
};
2824

2925
export const waitForPromises = () => new Promise(setImmediate);

0 commit comments

Comments
 (0)