Skip to content

Commit

Permalink
chore(deps): update react-router-dom to v7 and rename it (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
eglitise authored Nov 22, 2024
1 parent 1752db3 commit c455b37
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 33 deletions.
2 changes: 1 addition & 1 deletion app/common/renderer/Root.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Suspense} from 'react';
import {Provider} from 'react-redux';
import {MemoryRouter, Route, Routes} from 'react-router-dom';
import {MemoryRouter, Route, Routes} from 'react-router';

import Spinner from './components/Spinner/Spinner.jsx';
import InspectorPage from './containers/InspectorPage';
Expand Down
2 changes: 1 addition & 1 deletion app/common/renderer/components/Inspector/Inspector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import {Button, Card, Modal, Space, Spin, Switch, Tabs, Tooltip} from 'antd';
import {debounce} from 'lodash';
import {useEffect, useRef, useState} from 'react';
import {useNavigate} from 'react-router-dom';
import {useNavigate} from 'react-router';

import {BUTTON} from '../../constants/antd-types';
import {WINDOW_DIMENSIONS} from '../../constants/common';
Expand Down
2 changes: 1 addition & 1 deletion app/common/renderer/components/Session/Session.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {LinkOutlined} from '@ant-design/icons';
import {Badge, Button, Spin, Tabs} from 'antd';
import _ from 'lodash';
import {useEffect} from 'react';
import {useNavigate} from 'react-router-dom';
import {useNavigate} from 'react-router';

import {BUTTON} from '../../constants/antd-types';
import {LINKS} from '../../constants/common';
Expand Down
68 changes: 39 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"react-i18next": "15.1.1",
"react-icons": "5.3.0",
"react-redux": "9.1.2",
"react-router-dom": "6.28.0",
"react-router": "7.0.0",
"web2driver": "3.0.4",
"xpath": "0.0.34"
},
Expand Down

0 comments on commit c455b37

Please sign in to comment.