Skip to content
Snippets Groups Projects
Verified Commit f47b1e90 authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Take role from external file.

parent 2cc1b547
No related branches found
No related tags found
2 merge requests!69Possibility to insert a reservation and new docs.,!67Insert a reservation and search by senior.
......@@ -2,7 +2,6 @@ import React, { FC } from 'react';
import { ThemeProvider } from '@material-ui/core/styles';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import { AuthRoutes, NonAuthRoutes } from 'api/routes';
import { Roles } from 'api/userRoles';
import { configDjangoCookieName } from 'api/axios/configDjangoCookieName';
import { appTheme } from 'App.style';
import { withAuthorization } from 'components/Authorization/Authorization';
......@@ -12,13 +11,7 @@ import { NotFound } from 'components/NotFound/NotFound';
import { Unauthorized } from 'components/Unauthorized/Unauthorized';
import { LandingPage } from 'components/LandingPage/LandingPage';
import { configureInterceptors } from 'api/axios/configureInterceptors';
const All = withAuthorization([
Roles.admin,
Roles.operator,
Roles.senior,
Roles.driver,
]);
import { All } from 'roles/All';
/**
* Entry point of the app.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment