@bufferapp/nav-sidebar
Advanced tools
Comparing version 1.75.2 to 1.77.0
@@ -12,3 +12,3 @@ import React from "react"; | ||
} from "@bufferapp/analyze-account"; | ||
import { useUser } from "@bufferapp/app-shell"; | ||
import { useAccount } from '@bufferapp/analyze-account'; | ||
@@ -35,6 +35,4 @@ const Wrapper = styled.span` | ||
const hasSharedChannels = (user) => | ||
user && | ||
user.featureFlips && | ||
user.featureFlips.some((flag) => flag === SHARED_CHANNELS); | ||
const hasSharedChannels = (account) => | ||
account?.featureFlips?.some((flag) => flag === SHARED_CHANNELS); | ||
@@ -85,3 +83,3 @@ const AccountManagementLink = ({ | ||
}) => { | ||
const user = useUser(); | ||
const account = useAccount(); | ||
return ( | ||
@@ -110,6 +108,6 @@ <div> | ||
)} | ||
{isGlobalUser && !hasSharedChannels(user) && ( | ||
{isGlobalUser && !hasSharedChannels(account) && ( | ||
<AccountManagementLink | ||
isGlobalUser={isGlobalUser} | ||
user={user} | ||
user={account} | ||
organizationId={organizationId} | ||
@@ -116,0 +114,0 @@ > |
@@ -8,3 +8,2 @@ import React from 'react'; | ||
import Channels from './Channels'; | ||
import NewsLink from './NewsLink'; | ||
import FeedbackLink from './FeedbackLink'; | ||
@@ -65,3 +64,2 @@ import AccountManagement from './AccountManagement'; | ||
<AccountManagement {...props} /> | ||
<NewsLink /> | ||
<FeedbackLink email="hello+analyze@buffer.com" /> | ||
@@ -68,0 +66,0 @@ </div> |
{ | ||
"name": "@bufferapp/nav-sidebar", | ||
"version": "1.75.2", | ||
"version": "1.77.0", | ||
"description": "Nav sidebar for Analyze", | ||
@@ -13,5 +13,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@bufferapp/analyze-profile-selector": "^1.75.2", | ||
"@bufferapp/analyze-profile-selector": "^1.77.0", | ||
"@bufferapp/components": "3.2.1", | ||
"@bufferapp/report-list": "^1.75.2" | ||
"@bufferapp/report-list": "^1.77.0" | ||
}, | ||
@@ -23,3 +23,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "ac8e89fc28e8498c6e90f2c14a68fcceccfebf69" | ||
"gitHead": "975cf467d03ca2ef0c494d7c77893343ca0b968c" | ||
} |
57779
18
910