From f0df1a13bb95cc6080791dda363e223fb3771e9f Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Wed, 12 Jun 2019 19:38:57 +0200 Subject: Fix navigation panel --- .../features/ui/components/navigation_panel.js | 57 ++++++++-------------- 1 file changed, 19 insertions(+), 38 deletions(-) (limited to 'app/javascript/flavours/glitch/features/ui/components/navigation_panel.js') diff --git a/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js b/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js index ddcd07aaa..de60a7ac3 100644 --- a/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js +++ b/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js @@ -1,50 +1,31 @@ import React from 'react'; -import ImmutablePureComponent from 'react-immutable-pure-component'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import Icon from 'flavours/glitch/components/icon'; import NotificationsCounterIcon from './notifications_counter_icon'; import FollowRequestsNavLink from './follow_requests_nav_link'; import ListPanel from './list_panel'; -import { openModal } from 'flavours/glitch/actions/modal'; -import { connect } from 'react-redux'; -const mapStateToProps = () => {}; +const NavigationPanel = ({ onOpenSettings }) => ( +
+ + + + + + + + -const mapDispatchToProps = dispatch => ({ - openSettings (e) { - e.preventDefault(); - e.stopPropagation(); - dispatch(openModal('SETTINGS', {})); - }, -}); + -export default @connect(mapStateToProps, mapDispatchToProps) -@withRouter -class NavigationPanel extends ImmutablePureComponent { - render() { - const { openSettings } = this.props; +
- return ( -
- - - - - - - - + + + + +
+); - - -
- - - - - -
- ); - }; -}; +export default withRouter(NavigationPanel); -- cgit