SidebarNavigation: add back search button
This commit is contained in:
parent
92367c3495
commit
504940304a
1 changed files with 7 additions and 0 deletions
|
@ -13,6 +13,7 @@ import SidebarNavigationLink from './sidebar-navigation-link';
|
||||||
|
|
||||||
import type { Menu } from 'soapbox/components/dropdown_menu';
|
import type { Menu } from 'soapbox/components/dropdown_menu';
|
||||||
|
|
||||||
|
/** Desktop sidebar with links to different views in the app. */
|
||||||
const SidebarNavigation = () => {
|
const SidebarNavigation = () => {
|
||||||
const instance = useAppSelector((state) => state.instance);
|
const instance = useAppSelector((state) => state.instance);
|
||||||
const settings = useAppSelector((state) => getSettings(state));
|
const settings = useAppSelector((state) => getSettings(state));
|
||||||
|
@ -141,6 +142,12 @@ const SidebarNavigation = () => {
|
||||||
text={<FormattedMessage id='tabs_bar.home' defaultMessage='Home' />}
|
text={<FormattedMessage id='tabs_bar.home' defaultMessage='Home' />}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<SidebarNavigationLink
|
||||||
|
to='/search'
|
||||||
|
icon={require('@tabler/icons/icons/search.svg')}
|
||||||
|
text={<FormattedMessage id='tabs_bar.search' defaultMessage='Search' />}
|
||||||
|
/>
|
||||||
|
|
||||||
{account && (
|
{account && (
|
||||||
<>
|
<>
|
||||||
<SidebarNavigationLink
|
<SidebarNavigationLink
|
||||||
|
|
Loading…
Reference in a new issue