mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: universal Search.
This commit is contained in:
@@ -2,8 +2,6 @@ import t from 'store/types';
|
||||
import { createReducer } from '@reduxjs/toolkit';
|
||||
|
||||
const initialState = {
|
||||
searches: {},
|
||||
searchTitle: 'Title',
|
||||
isOpen: false,
|
||||
};
|
||||
|
||||
@@ -14,5 +12,5 @@ export default createReducer(initialState, {
|
||||
|
||||
[t.CLOSE_SEARCH]: (state, action) => {
|
||||
state.isOpen = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export default {
|
||||
SEARCH_SUCCESS:'SEARCH_SUCCESS',
|
||||
SEARCH_TYPE: 'SEARCH_TYPE',
|
||||
OPEN_SEARCH: 'OPEN_SEARCH',
|
||||
CLOSE_SEARCH: 'CLOSE_SEARCH',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user