Grafana/ui: Update Link component to react router 6 (#92976)
* Grafana/ui: Update Link component to react router 6 * Add compat package to grafana/ui
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
"react-i18next": "^14.0.0",
|
||||
"react-inlinesvg": "3.0.2",
|
||||
"react-loading-skeleton": "3.4.0",
|
||||
"react-router-dom": "5.3.3",
|
||||
"react-router-dom-v5-compat": "^6.26.1",
|
||||
"react-select": "5.8.0",
|
||||
"react-table": "7.8.0",
|
||||
"react-transition-group": "4.4.5",
|
||||
@@ -151,7 +151,6 @@
|
||||
"@types/react-color": "3.0.12",
|
||||
"@types/react-dom": "18.2.25",
|
||||
"@types/react-highlight-words": "0.20.0",
|
||||
"@types/react-router-dom": "5.3.3",
|
||||
"@types/react-test-renderer": "18.3.0",
|
||||
"@types/react-transition-group": "4.4.11",
|
||||
"@types/react-window": "1.8.8",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { AnchorHTMLAttributes, forwardRef } from 'react';
|
||||
import { Link as RouterLink } from 'react-router-dom';
|
||||
import { Link as RouterLink } from 'react-router-dom-v5-compat';
|
||||
|
||||
import { locationUtil, textUtil } from '@grafana/data';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
import { MemoryRouter } from 'react-router-dom-v5-compat';
|
||||
|
||||
import { GrafanaConfig, locationUtil } from '@grafana/data';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user