feat: universal Search.

This commit is contained in:
elforjani3
2021-08-07 22:26:57 +02:00
parent fad9052da8
commit 3bd3619271
7 changed files with 139 additions and 53 deletions

View File

@@ -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;
}
});
},
});

View File

@@ -1,5 +1,5 @@
export default {
SEARCH_SUCCESS:'SEARCH_SUCCESS',
SEARCH_TYPE: 'SEARCH_TYPE',
OPEN_SEARCH: 'OPEN_SEARCH',
CLOSE_SEARCH: 'CLOSE_SEARCH',
};