diff --git a/app/javascript/mastodon/features/ui/components/header.jsx b/app/javascript/mastodon/features/ui/components/header.jsx
index 68484b59a..57cbd556b 100644
--- a/app/javascript/mastodon/features/ui/components/header.jsx
+++ b/app/javascript/mastodon/features/ui/components/header.jsx
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types';
import { PureComponent } from 'react';
-import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
+import { FormattedMessage, /* defineMessages, */ injectIntl } from 'react-intl';
import { Link, withRouter } from 'react-router-dom';
@@ -10,10 +10,12 @@ import { connect } from 'react-redux';
import { openModal } from 'mastodon/actions/modal';
import { fetchServer } from 'mastodon/actions/server';
import { Avatar } from 'mastodon/components/avatar';
-import { Icon } from 'mastodon/components/icon';
+//import { Icon } from 'mastodon/components/icon';
import { WordmarkLogo, SymbolLogo } from 'mastodon/components/logo';
import { registrationsOpen, me, sso_redirect } from 'mastodon/initial_state';
+import NavigationPanel from './navigation_panel';
+
const Account = connect(state => ({
account: state.getIn(['accounts', me]),
}))(({ account }) => (
@@ -22,9 +24,9 @@ const Account = connect(state => ({
));
-const messages = defineMessages({
- search: { id: 'navigation_bar.search', defaultMessage: 'Search' },
-});
+//const messages = defineMessages({
+// search: { id: 'navigation_bar.search', defaultMessage: 'Search' },
+//});
const mapStateToProps = (state) => ({
signupUrl: state.getIn(['server', 'server', 'registrations', 'url'], null) || '/auth/sign_up',
@@ -60,14 +62,13 @@ class Header extends PureComponent {
render () {
const { signedIn } = this.context.identity;
- const { location, openClosedRegistrationsModal, signupUrl, intl } = this.props;
+ const { location, openClosedRegistrationsModal, signupUrl, /* intl */ } = this.props;
let content;
if (signedIn) {
content = (
<>
- {location.pathname !== '/search' &&