This repository was archived by the owner on Nov 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { useContext } from "react" ;
22import Box from "@mui/material/Box" ;
3- import { useLocation } from "react-router" ;
3+ import { useLocation } from "react-router-dom " ;
44import { AuthContext } from "~/pages/auth/Auth.context" ;
55import Error404 from "~/components/Errors/Error404" ;
66import Card from "~/components/Card" ;
Original file line number Diff line number Diff line change 11import { useMemo } from "react" ;
2- import { useLocation } from "react-router" ;
2+ import { useLocation } from "react-router-dom " ;
33import Box from "@mui/material/Box" ;
44import ArrowBack from "@mui/icons-material/ArrowBack" ;
55import AppName from "~/components/AppName" ;
Original file line number Diff line number Diff line change 11import { useContext , useMemo } from "react" ;
2- import { useNavigate , useLocation } from "react-router" ;
2+ import { useNavigate , useLocation } from "react-router-dom " ;
33import Box from "@mui/material/Box" ;
44import Select from "@mui/material/Select" ;
55import MenuItem from "@mui/material/MenuItem" ;
Original file line number Diff line number Diff line change 11import { useMemo , useContext } from "react" ;
2- import { useLocation } from "react-router" ;
2+ import { useLocation } from "react-router-dom " ;
33import Box from "@mui/material/Box" ;
44import { AuthContext } from "~/pages/auth/Auth.context" ;
55import MenuLink from "~/components/MenuLink" ;
Original file line number Diff line number Diff line change 11import { useContext , useState } from "react" ;
2- import { useLocation } from "react-router" ;
2+ import { useLocation } from "react-router-dom " ;
33import Box from "@mui/material/Box" ;
44import Link from "@mui/material/Link" ;
55import Typography from "@mui/material/Typography" ;
Original file line number Diff line number Diff line change 11import { useContext , useEffect } from "react" ;
2- import { useNavigate , useLocation } from "react-router" ;
2+ import { useNavigate , useLocation } from "react-router-dom " ;
33import RollbackIcon from "@mui/icons-material/RefreshOutlined" ;
44import ShieldIcon from "@mui/icons-material/Shield" ;
55import CloudIcon from "@mui/icons-material/Cloud" ;
Original file line number Diff line number Diff 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
2925export const waitForPromises = ( ) => new Promise ( setImmediate ) ;
You can’t perform that action at this time.
0 commit comments