mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-05 15:57:24 +03:00
11 lines
282 B
JavaScript
11 lines
282 B
JavaScript
|
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;
|
||
|
}
|
||
|
}
|