redesigned white labeling code
This commit is contained in:
parent
a84c09a5c8
commit
81c2b687fa
9 changed files with 423 additions and 418 deletions
|
|
@ -16,7 +16,7 @@ import { useGlobalState, useSnackbar, useUserAPI } from "providers";
|
|||
import { useTeamAPI } from "providers/pond/teamAPI";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useLocation, useNavigate, useParams } from 'react-router-dom';
|
||||
import { getSignatureAccentColour, IsAdaptiveAgriculture, IsStreamline } from "services/whiteLabel";
|
||||
import { getSignatureAccentColour, getFeatures } from "services/whiteLabel";
|
||||
import TeamActions from "teams/TeamActions";
|
||||
import TeamKeyManager from "teams/TeamKeyManager";
|
||||
import ObjectUsers from "user/ObjectUsers";
|
||||
|
|
@ -220,8 +220,7 @@ export default function TeamPage() {
|
|||
navigate("bins")
|
||||
}
|
||||
|
||||
const isAg = IsAdaptiveAgriculture()
|
||||
const isStreamline = IsStreamline()
|
||||
const f = getFeatures()
|
||||
|
||||
return (
|
||||
<PageContainer spacing={isMobile ? 1 : 2}>
|
||||
|
|
@ -267,7 +266,7 @@ export default function TeamPage() {
|
|||
<ListItemButton onClick={toGroups}>
|
||||
Groups
|
||||
</ListItemButton>
|
||||
{((isAg || isStreamline) || user.hasFeature("admin")) &&
|
||||
{(f.bins || user.hasFeature("admin")) &&
|
||||
<>
|
||||
<Divider />
|
||||
<ListItemButton onClick={toBins}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue