update gallery-project
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { PROJECT_PROGRESS, GET_PROJECT, GET_PROJECTS, PROJECT_TYPE } from '../actions/types';
|
||||
import { PROJECT_PROGRESS, GET_PROJECT, GET_PROJECTS, PROJECT_TYPE, PROJECT_DESCRIPTION } from '../actions/types';
|
||||
|
||||
const initialState = {
|
||||
projects: [],
|
||||
type: '',
|
||||
description: '',
|
||||
progress: false
|
||||
};
|
||||
|
||||
@@ -28,6 +29,11 @@ export default function (state = initialState, action) {
|
||||
...state,
|
||||
type: action.payload
|
||||
}
|
||||
case PROJECT_DESCRIPTION:
|
||||
return {
|
||||
...state,
|
||||
description: action.payload
|
||||
}
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user