clean code after merge
[arvados-workbench2.git] / src / views-components / search-bar / search-bar.tsx
index affd5e4c69b16dc488b0f18a98430fdda405a723..5f51654879e5176e910451f3c1b5ac3a0be5381f 100644 (file)
@@ -10,12 +10,17 @@ import { SearchBarView } from '~/views-components/search-bar/search-bar-view';
 
 const mapStateToProps = ({ searchBar }: RootState) => {
     return {
+        // ToDo: add value to store
+        value: '',
         currentView: searchBar.currentView,
         open: searchBar.open
     };
 };
 
 const mapDispatchToProps = (dispatch: Dispatch) => ({
+    onSearch: (terms: string) => {
+        console.log('search: ', terms);
+    },
     onSetView: (currentView: string) => dispatch(goToView(currentView)),
     openView: () => dispatch<any>(searchBarActions.OPEN_SEARCH_VIEW()),
     closeView: () => dispatch<any>(searchBarActions.CLOSE_SEARCH_VIEW())