assigne badge after tutorial-success

This commit is contained in:
Delucse
2020-12-09 19:34:44 +01:00
parent f9caeb619e
commit 101dfc7692
8 changed files with 132 additions and 8 deletions
+7 -1
View File
@@ -1,10 +1,11 @@
import { PROGRESS, JSON_STRING, BUILDER_CHANGE, BUILDER_ERROR, BUILDER_TITLE, BUILDER_ID, BUILDER_ADD_STEP, BUILDER_DELETE_STEP, BUILDER_CHANGE_STEP,BUILDER_CHANGE_ORDER, BUILDER_DELETE_PROPERTY } from '../actions/types';
import { PROGRESS, JSON_STRING, BUILDER_CHANGE, BUILDER_ERROR, BUILDER_TITLE, BUILDER_BADGE, BUILDER_ID, BUILDER_ADD_STEP, BUILDER_DELETE_STEP, BUILDER_CHANGE_STEP,BUILDER_CHANGE_ORDER, BUILDER_DELETE_PROPERTY } from '../actions/types';
const initialState = {
change: 0,
progress: false,
json: '',
title: '',
badge: '',
id: '',
steps: [
{
@@ -33,6 +34,11 @@ export default function(state = initialState, action){
...state,
title: action.payload
};
case BUILDER_BADGE:
return {
...state,
badge: action.payload
};
case BUILDER_ID:
return {
...state,