From 941f8c9b11c73f32580205c3d469823ea8051acf Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 27 Jun 2022 12:00:03 +0200 Subject: [PATCH] change(ui) - removed unused from header component --- .../app/components/Client/Roles/Roles.tsx | 3 +- .../Roles/components/RoleItem/RoleItem.tsx | 8 ++++-- frontend/app/components/Header/Header.js | 28 ++----------------- 3 files changed, 10 insertions(+), 29 deletions(-) diff --git a/frontend/app/components/Client/Roles/Roles.tsx b/frontend/app/components/Client/Roles/Roles.tsx index 9d9a27cec..f9b9ef072 100644 --- a/frontend/app/components/Client/Roles/Roles.tsx +++ b/frontend/app/components/Client/Roles/Roles.tsx @@ -109,10 +109,11 @@ function Roles(props: Props) { icon >
-
+
Title
Project Access
Feature Access
+
{roles.map(role => (
- {role.permissions.map((permission: any) => ( - - ))} +
+ {role.permissions.map((permission: any) => ( + + ))} +
{isAdmin && !!editHandler && diff --git a/frontend/app/components/Header/Header.js b/frontend/app/components/Header/Header.js index 293799976..fc1aab477 100644 --- a/frontend/app/components/Header/Header.js +++ b/frontend/app/components/Header/Header.js @@ -6,12 +6,9 @@ import { sessions, assist, client, - errors, - // funnels, dashboard, withSiteId, CLIENT_DEFAULT_TAB, - isRoute, } from 'App/routes'; import { logout } from 'Duck/user'; import { Icon, Popup } from 'UI'; @@ -20,7 +17,7 @@ import styles from './header.module.css'; import OnboardingExplore from './OnboardingExplore/OnboardingExplore' import Announcements from '../Announcements'; import Notifications from '../Alerts/Notifications'; -import { init as initSite, fetchList as fetchSiteList } from 'Duck/site'; +import { init as initSite } from 'Duck/site'; import ErrorGenPanel from 'App/dev/components'; import Alerts from '../Alerts/Alerts'; @@ -32,18 +29,13 @@ import { useObserver } from 'mobx-react-lite'; const DASHBOARD_PATH = dashboard(); const SESSIONS_PATH = sessions(); const ASSIST_PATH = assist(); -const ERRORS_PATH = errors(); -// const FUNNELS_PATH = funnels(); const CLIENT_PATH = client(CLIENT_DEFAULT_TAB); -const AUTOREFRESH_INTERVAL = 30 * 1000; - -let interval = null; const Header = (props) => { const { sites, location, account, onLogoutClick, siteId, - boardingCompletion = 100, fetchSiteList, showAlerts = false, + boardingCompletion = 100, showAlerts = false, } = props; const name = account.get('name').split(" ")[0]; @@ -98,20 +90,6 @@ const Header = (props) => { > { 'Assist' } - {/* - { 'Errors' } - - - { 'Funnels' } - */}