SidebarNavigation: add back search button

site-logo
Alex Gleason 2022-05-10 20:25:19 -05:00
rodzic 92367c3495
commit 504940304a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -13,6 +13,7 @@ import SidebarNavigationLink from './sidebar-navigation-link';
import type { Menu } from 'soapbox/components/dropdown_menu';
/** Desktop sidebar with links to different views in the app. */
const SidebarNavigation = () => {
const instance = useAppSelector((state) => state.instance);
const settings = useAppSelector((state) => getSettings(state));
@ -141,6 +142,12 @@ const SidebarNavigation = () => {
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 && (
<>
<SidebarNavigationLink