Fixed header title for search
This commit is contained in:
@ -3,7 +3,7 @@ import { observer } from 'mobx-react';
|
|||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
|
||||||
import { Flex } from 'reflexbox';
|
import { Flex } from 'reflexbox';
|
||||||
import Layout from 'components/Layout';
|
import Layout, { Title } from 'components/Layout';
|
||||||
import CenteredContent from 'components/CenteredContent';
|
import CenteredContent from 'components/CenteredContent';
|
||||||
import SearchField from './components/SearchField';
|
import SearchField from './components/SearchField';
|
||||||
import DocumentPreview from 'components/DocumentPreview';
|
import DocumentPreview from 'components/DocumentPreview';
|
||||||
@ -25,10 +25,15 @@ class Search extends React.Component {
|
|||||||
const search = _.debounce((searchTerm) => {
|
const search = _.debounce((searchTerm) => {
|
||||||
this.store.search(searchTerm);
|
this.store.search(searchTerm);
|
||||||
}, 250);
|
}, 250);
|
||||||
|
const title = (
|
||||||
|
<Title>
|
||||||
|
Search
|
||||||
|
</Title>
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout
|
<Layout
|
||||||
title="Search"
|
title={ title }
|
||||||
titleText="Search"
|
titleText="Search"
|
||||||
search={ false }
|
search={ false }
|
||||||
loading={ this.store.isFetching }
|
loading={ this.store.isFetching }
|
||||||
|
Reference in New Issue
Block a user