reate-router 7.0.1

This commit is contained in:
proddy
2024-11-22 16:29:31 +01:00
parent b9a0744433
commit 2437976aed
28 changed files with 261 additions and 292 deletions

View File

@@ -1,4 +1,4 @@
import type { Blocker } from 'react-router-dom';
import type { Blocker } from 'react-router';
import {
Button,

View File

@@ -1,6 +1,6 @@
import { useContext } from 'react';
import type { FC } from 'react';
import { Navigate } from 'react-router-dom';
import { Navigate } from 'react-router';
import { AuthenticatedContext } from 'contexts/authentication';
import type { RequiredChildrenProps } from 'utils';

View File

@@ -1,6 +1,6 @@
import { useContext, useEffect } from 'react';
import type { FC } from 'react';
import { Navigate, useLocation } from 'react-router-dom';
import { Navigate, useLocation } from 'react-router';
import { storeLoginRedirect } from 'components/routing/authentication';
import type { AuthenticatedContextValue } from 'contexts/authentication/context';

View File

@@ -1,6 +1,6 @@
import { useContext } from 'react';
import type { FC } from 'react';
import { Navigate } from 'react-router-dom';
import { Navigate } from 'react-router';
import { fetchLoginRedirect } from 'components/routing/authentication';
import { AuthenticationContext } from 'contexts/authentication';

View File

@@ -1,5 +1,5 @@
import type { FC } from 'react';
import { useNavigate } from 'react-router-dom';
import { useNavigate } from 'react-router';
import { Tabs, useMediaQuery, useTheme } from '@mui/material';

View File

@@ -1,4 +1,4 @@
import type { Path } from 'react-router-dom';
import type { Path } from 'react-router';
import type * as H from 'history';
import { jwtDecode } from 'jwt-decode';

View File

@@ -1,4 +1,4 @@
import { useMatch, useResolvedPath } from 'react-router-dom';
import { useMatch, useResolvedPath } from 'react-router';
export const useRouterTab = () => {
const routerTabPathMatch = useMatch(useResolvedPath(':tab').pathname);