Skip to content
Snippets Groups Projects
Commit 6d972da2 authored by Evelyn Eastmond's avatar Evelyn Eastmond
Browse files

Adding a stub toggleCards reducer.

parent 96bd677e
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ import analytics from '../lib/analytics';
import decks from '../lib/libraries/decks/index.jsx';
const CLOSE_CARDS = 'scratch-gui/cards/CLOSE_CARDS';
const TOGGLE_CARDS = 'scratch-gui/cards/TOGGLE_CARDS';
const VIEW_CARDS = 'scratch-gui/cards/VIEW_CARDS';
const ACTIVATE_DECK = 'scratch-gui/cards/ACTIVATE_DECK';
const NEXT_STEP = 'scratch-gui/cards/NEXT_STEP';
......@@ -28,6 +29,10 @@ const reducer = function (state, action) {
return Object.assign({}, state, {
visible: false
});
case TOGGLE_CARDS:
return Object.assign({}, state, {
visible: false
});
case VIEW_CARDS:
return Object.assign({}, state, {
visible: true
......@@ -92,6 +97,10 @@ const closeCards = function () {
return {type: CLOSE_CARDS};
};
const toggleCards = function () {
return {type: TOGGLE_CARDS};
};
const nextStep = function () {
return {type: NEXT_STEP};
};
......@@ -118,6 +127,7 @@ export {
activateDeck,
viewCards,
closeCards,
toggleCards,
nextStep,
prevStep,
dragCard,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment