From 3f5c5fdaeead8c60b95c1dc68222bfb93c3f472b Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Tue, 2 Oct 2018 18:05:10 +0200 Subject: [PATCH] Switched behavior --- .../components/Group/index.js | 6 +- .../components/NotificationsGroups/index.js | 78 +++++++++---------- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/src/components/notifications/Context/components/Action/components/NotificationsGroups/components/Group/index.js b/src/components/notifications/Context/components/Action/components/NotificationsGroups/components/Group/index.js index 298a77df..0edceb1d 100644 --- a/src/components/notifications/Context/components/Action/components/NotificationsGroups/components/Group/index.js +++ b/src/components/notifications/Context/components/Action/components/NotificationsGroups/components/Group/index.js @@ -45,12 +45,12 @@ class Group extends Component { if (this.state.visible) { this.setState({ visible: false, - visibleCount: 0, + visibleCount: this.props.groupNotifications.length, }); } else { this.setState({ visible: true, - visibleCount: this.props.groupNotifications.length, + visibleCount: 0, }); } } @@ -88,7 +88,7 @@ class Group extends Component { .slice(0, this.state.visibleCount) .map(notification => (