mirror of
https://github.com/alice-lg/alice-lg.git
synced 2024-05-11 05:55:03 +00:00
18 lines
249 B
JavaScript
18 lines
249 B
JavaScript
import {API_ERROR} from './actions'
|
|
|
|
const initialState = {
|
|
error: null,
|
|
};
|
|
|
|
|
|
export default function reducer(state = initialState, action) {
|
|
switch(action.type) {
|
|
case API_ERROR:
|
|
return {error: action.error};
|
|
}
|
|
return state;
|
|
}
|
|
|
|
|
|
|