// SPDX-License-Identifier: AGPL-3.0
import { connect } from 'react-redux';
-import { RootState } from '~/store/store';
+import { RootState } from 'store/store';
import { Dispatch } from 'redux';
import {
goToView,
editSavedQuery,
changeData,
submitData, moveUp, moveDown, setAdvancedDataFromSearchValue, SEARCH_BAR_ADVANCED_FORM_NAME
-} from '~/store/search-bar/search-bar-actions';
-import { SearchBarView, SearchBarActionProps, SearchBarDataProps } from '~/views-components/search-bar/search-bar-view';
-import { SearchBarAdvancedFormData } from '~/models/search-bar';
-import { Vocabulary } from '~/models/vocabulary';
+} from 'store/search-bar/search-bar-actions';
+import { SearchBarView, SearchBarActionProps, SearchBarDataProps } from 'views-components/search-bar/search-bar-view';
+import { SearchBarAdvancedFormData } from 'models/search-bar';
+import { Vocabulary } from 'models/vocabulary';
const mapStateToProps = ({ searchBar, form }: RootState): SearchBarDataProps => {
return {
};
const mapDispatchToProps = (dispatch: Dispatch): SearchBarActionProps => ({
- onSearch: (valueSearch: string) => dispatch<any>(searchData(valueSearch)),
+ onSearch: (valueSearch: string) => dispatch<any>(searchData(valueSearch, true)),
onChange: (event: React.ChangeEvent<HTMLInputElement>) => dispatch<any>(changeData(event.target.value)),
onSetView: (currentView: string) => dispatch(goToView(currentView)),
onSubmit: (event: React.FormEvent<HTMLFormElement>) => dispatch<any>(submitData(event)),