update gallery-project

This commit is contained in:
Delucse
2020-12-02 18:04:03 +01:00
parent 155675821a
commit e2915e8cd0
5 changed files with 63 additions and 13 deletions
+7 -1
View File
@@ -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;
}