Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useDispatch } from 'react-redux'
import React, { useEffect, useState } from 'react'
import { useHistory } from 'react-router-dom'
import { Switch, useHistory } from 'react-router-dom'

import {
checkConnectToInstanceAction,
Expand Down Expand Up @@ -47,7 +47,7 @@ const Router = ({ databaseId = '' }: IProps) => {
return connection.loading
? <PagePlaceholder />
: (
<>
<Switch>
{ROUTES
.map((route, i) => (
route.protected
Expand All @@ -60,7 +60,7 @@ const Router = ({ databaseId = '' }: IProps) => {
// eslint-disable-next-line react/no-array-index-key
: <RouteWithSubRoutes key={i} {...route} />
))}
</>
</Switch>
)
}

Expand Down