@ -2,11 +2,12 @@ import React from 'react';
import { NavLink , withRouter } from 'react-router-dom' ;
import { NavLink , withRouter } from 'react-router-dom' ;
import { FormattedMessage } from 'react-intl' ;
import { FormattedMessage } from 'react-intl' ;
import Icon from 'flavours/glitch/components/icon' ;
import Icon from 'flavours/glitch/components/icon' ;
import { profile_directory } from 'flavours/glitch/util/initial_state' ;
import { profile_directory , showTrends } from 'flavours/glitch/util/initial_state' ;
import { preferencesLink , relationshipsLink } from 'flavours/glitch/util/backend_links' ;
import { preferencesLink , relationshipsLink } from 'flavours/glitch/util/backend_links' ;
import NotificationsCounterIcon from './notifications_counter_icon' ;
import NotificationsCounterIcon from './notifications_counter_icon' ;
import FollowRequestsNavLink from './follow_requests_nav_link' ;
import FollowRequestsNavLink from './follow_requests_nav_link' ;
import ListPanel from './list_panel' ;
import ListPanel from './list_panel' ;
import TrendsContainer from 'flavours/glitch/features/getting_started/containers/trends_container' ;
const NavigationPanel = ( { onOpenSettings } ) => (
const NavigationPanel = ( { onOpenSettings } ) => (
< div className = 'navigation-panel' >
< div className = 'navigation-panel' >
@ -27,6 +28,9 @@ const NavigationPanel = ({ onOpenSettings }) => (
{ ! ! preferencesLink && < a className = 'column-link column-link--transparent' href = { preferencesLink } target = '_blank' > < Icon className = 'column-link__icon' icon = 'cog' fixedWidth / > < FormattedMessage id = 'navigation_bar.preferences' defaultMessage = 'Preferences' / > < / a > }
{ ! ! preferencesLink && < a className = 'column-link column-link--transparent' href = { preferencesLink } target = '_blank' > < Icon className = 'column-link__icon' icon = 'cog' fixedWidth / > < FormattedMessage id = 'navigation_bar.preferences' defaultMessage = 'Preferences' / > < / a > }
< a className = 'column-link column-link--transparent' href = '#' onClick = { onOpenSettings } > < Icon className = 'column-link__icon' icon = 'cogs' fixedWidth / > < FormattedMessage id = 'navigation_bar.app_settings' defaultMessage = 'App settings' / > < / a >
< a className = 'column-link column-link--transparent' href = '#' onClick = { onOpenSettings } > < Icon className = 'column-link__icon' icon = 'cogs' fixedWidth / > < FormattedMessage id = 'navigation_bar.app_settings' defaultMessage = 'App settings' / > < / a >
{ ! ! relationshipsLink && < a className = 'column-link column-link--transparent' href = { relationshipsLink } target = '_blank' > < Icon className = 'column-link__icon' icon = 'users' fixedWidth / > < FormattedMessage id = 'navigation_bar.follows_and_followers' defaultMessage = 'Follows and followers' / > < / a > }
{ ! ! relationshipsLink && < a className = 'column-link column-link--transparent' href = { relationshipsLink } target = '_blank' > < Icon className = 'column-link__icon' icon = 'users' fixedWidth / > < FormattedMessage id = 'navigation_bar.follows_and_followers' defaultMessage = 'Follows and followers' / > < / a > }
{ showTrends && < div className = 'flex-spacer' / > }
{ showTrends && < TrendsContainer / > }
< / d i v >
< / d i v >
) ;
) ;