mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 15:09:10 +00:00
chore: upgrade react router
This commit is contained in:
committed by
Carlos Valente
parent
7a322406da
commit
8c90f5043f
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { createRoutesFromChildren, matchRoutes, useLocation, useNavigationType } from 'react-router-dom';
|
||||
import { Routes } from 'react-router-dom';
|
||||
import { createRoutesFromChildren, matchRoutes, useLocation, useNavigationType } from 'react-router';
|
||||
import { Routes } from 'react-router';
|
||||
import * as Sentry from '@sentry/react';
|
||||
|
||||
import { ONTIME_VERSION } from './ONTIME_VERSION';
|
||||
@@ -35,7 +35,7 @@ export const initializeSentry = () => {
|
||||
Sentry.init({
|
||||
dsn: sentryDsn,
|
||||
integrations: [
|
||||
Sentry.reactRouterV6BrowserTracingIntegration({
|
||||
Sentry.reactRouterV7BrowserTracingIntegration({
|
||||
useEffect: React.useEffect,
|
||||
useLocation,
|
||||
useNavigationType,
|
||||
|
||||
Reference in New Issue
Block a user