Skip to content

Commit

Permalink
fix routes
Browse files Browse the repository at this point in the history
  • Loading branch information
hervedombya committed Nov 6, 2023
1 parent 582072c commit 4d009fb
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/react/Routes.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { AppContainer, ErrorPage401, Icon, Sidebar } from '@scality/core-ui';
import { EmptyStateContainer } from './ui-elements/Container';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import {
Redirect,
Route,
Expand All @@ -10,34 +9,36 @@ import {
useHistory,
useLocation,
} from 'react-router-dom';
import { useTheme } from 'styled-components';
import makeMgtClient from '../js/managementClient';
import type { AppState } from '../types/state';
import DataServiceRoleProvider, {
useCurrentAccount,
} from './DataServiceRoleProvider';
import ManagementProvider from './ManagementProvider';
import NoMatch from './NoMatch';
import AccountContent from './account/AccountContent';
import AccountCreate from './account/AccountCreate';
import Accounts from './account/Accounts';
import {
loadClients,
loadInstanceLatestStatus,
setManagementClient,
} from './actions';
import { useDispatch, useSelector } from 'react-redux';
import AccountCreate from './account/AccountCreate';
import Accounts from './account/Accounts';
import AccountContent from './account/AccountContent';
import type { AppState } from '../types/state';
import DataBrowser from './databrowser/DataBrowser';
import BucketCreate from './databrowser/buckets/BucketCreate';
import EndpointCreate from './endpoint/EndpointCreate';
import Endpoints from './endpoint/Endpoints';
import Loader from './ui-elements/Loader';
import LocationEditor from './locations/LocationEditor';
import NoMatch from './NoMatch';
import ManagementProvider from './ManagementProvider';
import DataServiceRoleProvider, {
useCurrentAccount,
} from './DataServiceRoleProvider';
import BucketCreate from './databrowser/buckets/BucketCreate';
import makeMgtClient from '../js/managementClient';
import { ErrorPage401, Icon, Sidebar } from '@scality/core-ui';
import { Warning } from './ui-elements/Warning';
import { AppContainer } from '@scality/core-ui';
import { Locations } from './locations/Locations';
import { EmptyStateContainer } from './ui-elements/Container';
import Loader from './ui-elements/Loader';
import ReauthDialog from './ui-elements/ReauthDialog';
import Configuration from './ui-elements/Veeam/VeeamConfiguration';
import { Warning } from './ui-elements/Warning';
import { useAuthGroups } from './utils/hooks';
import { useTheme } from 'styled-components';
import Configuration from './ui-elements/Veeam/VeeamConfiguration';

export const RemoveTrailingSlash = ({ ...rest }) => {
const location = useLocation();
Expand Down Expand Up @@ -224,7 +225,6 @@ function Routes() {
{ path: '/accounts/:accountName/workflows/create-workflow' },
{ path: '/accounts/:accountName/create-policy' },
{ path: '/veeam/configuration' },
{ path: '/veeam/table' },
];

const hideSideBar = doesRouteMatch(routeWithoutSideBars);
Expand Down

0 comments on commit 4d009fb

Please sign in to comment.