feat: move search bar to navigation panel (#1170)

This commit is contained in:
Aman Harwara
2022-06-28 18:20:31 +05:30
committed by GitHub
parent fb0684a19c
commit 7b51fa4fa8
10 changed files with 134 additions and 106 deletions

View File

@@ -6,6 +6,7 @@ import { ApplicationEvent, PrefKey } from '@standardnotes/snjs'
import { observer } from 'mobx-react-lite'
import { FunctionComponent, useCallback, useEffect, useMemo, useState } from 'react'
import PanelResizer, { PanelSide, ResizeFinishCallback, PanelResizeType } from '@/Components/PanelResizer/PanelResizer'
import SearchBar from '@/Components/SearchBar/SearchBar'
type Props = {
application: WebApplication
@@ -50,6 +51,10 @@ const Navigation: FunctionComponent<Props> = ({ application }) => {
ref={setRef}
>
<div id="navigation-content" className="content">
<SearchBar
itemListController={viewControllerManager.itemListController}
searchOptionsController={viewControllerManager.searchOptionsController}
/>
<div className="section-title-bar">
<div className="section-title-bar-header">
<div className="title text-sm">