From 96bd677ef90d82f34acaefc0ccbc47ac04a41a46 Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Wed, 10 Apr 2019 11:55:47 -0400 Subject: [PATCH] Starting to add an onToggleCards prop. --- src/components/cards/cards.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/cards/cards.jsx b/src/components/cards/cards.jsx index 74e5b851c..624b6df43 100644 --- a/src/components/cards/cards.jsx +++ b/src/components/cards/cards.jsx @@ -42,7 +42,10 @@ const CardHeader = ({onCloseCards, onShowAll, totalSteps, step}) => ( ) : null}
-
+
{'Shrink'}
{ totalSteps={steps.length} onCloseCards={onCloseCards} onShowAll={onShowAll} + onToggleCards={onToggleCards} />
{steps[step].deckIds ? ( @@ -324,6 +328,7 @@ Cards.propTypes = { onPrevStep: PropTypes.func.isRequired, onShowAll: PropTypes.func, onStartDrag: PropTypes.func, + onToggleCards: PropTypes.func.isRequired, step: PropTypes.number.isRequired, x: PropTypes.number, y: PropTypes.number