From 096913a2aa25bf4d5d2bf9a1911ae45111229dc7 Mon Sep 17 00:00:00 2001
From: Monika <monika_hedman@brown.edu>
Date: Tue, 25 Jun 2019 19:27:17 -0400
Subject: end of day 6/25

---
 src/client/views/search/SearchBox.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'src/client/views/search/SearchBox.tsx')

diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx
index e86ecb781..dbaa6eba2 100644
--- a/src/client/views/search/SearchBox.tsx
+++ b/src/client/views/search/SearchBox.tsx
@@ -15,6 +15,7 @@ import { Id } from '../../../new_fields/FieldSymbols';
 import { SearchUtil } from '../../util/SearchUtil';
 import { RouteStore } from '../../../server/RouteStore';
 import { FilterBox } from './FilterBox';
+import { Pager } from './Pager';
 
 @observer
 export class SearchBox extends React.Component {
@@ -23,6 +24,10 @@ export class SearchBox extends React.Component {
     @observable private _resultsOpen: boolean = false;
     @observable private _results: Doc[] = [];
     @observable private _openNoResults: boolean = false;
+    @observable public _pageNum: number = 0;
+    //temp
+    @observable public _maxNum: number = 10;
+
     static Instance: SearchBox;
 
     constructor(props: any) {
@@ -164,6 +169,7 @@ export class SearchBox extends React.Component {
 
     @action.bound
     closeSearch = () => {
+        console.log("closing search")
         FilterBox.Instance.closeFilter();
         this.closeResults();
     }
@@ -192,6 +198,9 @@ export class SearchBox extends React.Component {
                     ) :
                         this._openNoResults ? (<div className="no-result">No Search Results</div>) : null}
                 </div>
+                <div style={this._results.length !== 0 ? { display: "flex" } : { display: "none" }}>
+                    <Pager />
+                </div>
             </div>
         );
     }
-- 
cgit v1.2.3-70-g09d2

