File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
redisinsight/ui/src/components/main-router/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { useDispatch } from 'react-redux'
2
2
import React , { useEffect , useState } from 'react'
3
- import { useHistory } from 'react-router-dom'
3
+ import { Switch , useHistory } from 'react-router-dom'
4
4
5
5
import {
6
6
checkConnectToInstanceAction ,
@@ -47,7 +47,7 @@ const Router = ({ databaseId = '' }: IProps) => {
47
47
return connection . loading
48
48
? < PagePlaceholder />
49
49
: (
50
- < >
50
+ < Switch >
51
51
{ ROUTES
52
52
. map ( ( route , i ) => (
53
53
route . protected
@@ -60,7 +60,7 @@ const Router = ({ databaseId = '' }: IProps) => {
60
60
// eslint-disable-next-line react/no-array-index-key
61
61
: < RouteWithSubRoutes key = { i } { ...route } />
62
62
) ) }
63
- </ >
63
+ </ Switch >
64
64
)
65
65
}
66
66
You can’t perform that action at this time.
0 commit comments