From 6d972da22740a7ec42f7067154fe520788116648 Mon Sep 17 00:00:00 2001
From: Evelyn Eastmond <evhan55@gmail.com>
Date: Wed, 10 Apr 2019 13:23:52 -0400
Subject: [PATCH] Adding a stub toggleCards reducer.

---
 src/reducers/cards.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/reducers/cards.js b/src/reducers/cards.js
index 37319cbea..abd018906 100644
--- a/src/reducers/cards.js
+++ b/src/reducers/cards.js
@@ -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,
-- 
GitLab