@bufferapp/nav-sidebar
Advanced tools
Comparing version 1.56.0 to 1.57.0
@@ -65,3 +65,3 @@ import React from 'react'; | ||
id={'manage-accounts'} | ||
title={"Manage Accounts"} | ||
title={"Manage Channels"} | ||
icon={<Gear />} | ||
@@ -68,0 +68,0 @@ onItemClick={() => {}} |
@@ -24,2 +24,3 @@ import React from "react"; | ||
<SingleChannel service={"twitter"} channels={channels} {...props} /> | ||
{props.featureFlips.includes('linkedinQA') && <SingleChannel service={"linkedin"} channels={channels} {...props} />} | ||
{props.isGlobalUser && ( | ||
@@ -46,4 +47,5 @@ <SingleChannel service={"shopify"} channels={channels} {...props} /> | ||
channels: [], | ||
featureFlips: [] | ||
}; | ||
export default Channels; |
@@ -6,3 +6,3 @@ import React from "react"; | ||
import SidebarListItem from "@bufferapp/ui/SidebarListItem"; | ||
import { Analyze, ChartLine, Facebook, Home, Instagram, Shopify, Twitter } from "@bufferapp/ui/Icon"; | ||
import { Analyze, ChartLine, Facebook, Home, Instagram, Shopify, Twitter, LinkedIn } from "@bufferapp/ui/Icon"; | ||
@@ -28,3 +28,4 @@ const NewTag = styled.em` | ||
Campaigns: <ChartLine />, | ||
Reports: <Analyze /> | ||
Reports: <Analyze />, | ||
Linkedin: <LinkedIn /> | ||
} | ||
@@ -31,0 +32,0 @@ |
@@ -13,2 +13,3 @@ import { push } from 'connected-react-router'; | ||
isGlobalUser: state.appSidebar.user.productlinks && state.appSidebar.user.productlinks.length > 0, | ||
featureFlips: state.appSidebar.user.featureFlips, | ||
}), | ||
@@ -15,0 +16,0 @@ dispatch => ({ |
@@ -36,2 +36,3 @@ import React from 'react'; | ||
productlinks: ['analyze'], | ||
featureFlips: [] | ||
}, | ||
@@ -38,0 +39,0 @@ }, |
{ | ||
"name": "@bufferapp/nav-sidebar", | ||
"version": "1.56.0", | ||
"version": "1.57.0", | ||
"description": "Nav sidebar for Analyze", | ||
@@ -13,5 +13,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@bufferapp/analyze-profile-selector": "^1.56.0", | ||
"@bufferapp/analyze-profile-selector": "^1.57.0", | ||
"@bufferapp/components": "3.2.1", | ||
"@bufferapp/report-list": "^1.56.0" | ||
"@bufferapp/report-list": "^1.57.0" | ||
}, | ||
@@ -23,3 +23,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "cc22a98fe20db394dc94c4d849391971fab903f3" | ||
"gitHead": "bd07dd00866dbc2de91b11c086f160186c6f39bb" | ||
} |
@@ -14,2 +14,3 @@ import { actionTypes as dataFetchActionTypes } from '@bufferapp/async-data-fetch'; | ||
shopify: ['overview'], | ||
linkedin: ['overview', 'posts', 'answers'], | ||
}; | ||
@@ -24,2 +25,3 @@ | ||
twitterProfile: null, | ||
linkedinProfile: null, | ||
}; | ||
@@ -43,2 +45,3 @@ | ||
getChannelByProfile(state.shopifyProfile), | ||
getChannelByProfile(state.linkedinProfile), | ||
].filter(e => e.id); | ||
@@ -52,2 +55,3 @@ } | ||
const shopifyProfile = getFirstProfileForService('shopify', profiles); | ||
const linkedinProfile = getFirstProfileForService('linkedin', profiles); | ||
const newState = { | ||
@@ -58,2 +62,3 @@ facebookProfile, | ||
shopifyProfile, | ||
linkedinProfile | ||
}; | ||
@@ -60,0 +65,0 @@ |
207866
1401