File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
__tests__/components/settings Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
- import React , { Suspense } from 'react' ;
2
- import { unstable_HistoryRouter as HistoryRouter , Route , Routes } from 'react-router-dom' ;
3
- import Loading from 'components/common/Loading' ;
1
+ import React from 'react' ;
2
+ import { Route , Routes } from 'react-router-dom' ;
4
3
import { Layout } from 'components/layout' ;
5
- import { PUBLIC_URL } from 'config' ;
6
- import { useStore } from 'store' ;
7
4
8
5
const LazyAuthPage = React . lazy ( ( ) => import ( 'components/auth/AuthPage' ) ) ;
9
6
const LazyLoopPage = React . lazy ( ( ) => import ( 'components/loop/LoopPage' ) ) ;
@@ -13,7 +10,6 @@ const LazySettingsPage = React.lazy(() => import('components/settings/SettingsPa
13
10
const LazyConnectPage = React . lazy ( ( ) => import ( 'components/connect/ConnectPage' ) ) ;
14
11
15
12
const AppRoutes : React . FC = ( ) => {
16
- const { router } = useStore ( ) ;
17
13
return (
18
14
< Routes >
19
15
< Route path = "/" element = { < LazyAuthPage /> } />
Original file line number Diff line number Diff line change @@ -23,11 +23,10 @@ describe('SettingsPage', () => {
23
23
const render = ( ) => {
24
24
return renderWithProviders (
25
25
< Routes >
26
- < Route
27
- path = "settings/*"
28
- element = { < SettingsPage /> }
29
- />
30
- </ Routes > , store ) ;
26
+ < Route path = "settings/*" element = { < SettingsPage /> } />
27
+ </ Routes > ,
28
+ store ,
29
+ ) ;
31
30
} ;
32
31
33
32
it ( 'should display the title' , ( ) => {
You can’t perform that action at this time.
0 commit comments