mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
17 lines
316 B
JavaScript
17 lines
316 B
JavaScript
import t from 'store/types';
|
|
import { createReducer } from '@reduxjs/toolkit';
|
|
|
|
const initialState = {
|
|
isOpen: false,
|
|
};
|
|
|
|
export default createReducer(initialState, {
|
|
[t.OPEN_SEARCH]: (state, action) => {
|
|
state.isOpen = true;
|
|
},
|
|
|
|
[t.CLOSE_SEARCH]: (state, action) => {
|
|
state.isOpen = false;
|
|
},
|
|
});
|