mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-08-05 02:21:55 +00:00
Moved management of filtering options to own reducer
This commit is contained in:
10
src/short-urls/reducers/shortUrlsListParams.js
Normal file
10
src/short-urls/reducers/shortUrlsListParams.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { UPDATE_SHORT_URLS_LIST } from '../../reducers/types';
|
||||
|
||||
export default function shortUrlsListReducer(state = { page: 1 }, action) {
|
||||
switch (action.type) {
|
||||
case UPDATE_SHORT_URLS_LIST:
|
||||
return { ...state, ...action.params };
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user