From 94708b9d0d88e5b5d13c10ed179cf39bb20ef8bd Mon Sep 17 00:00:00 2001 From: Chris Blanchard Date: Tue, 20 Oct 2015 23:49:21 +0100 Subject: [PATCH] Rejig gather join buttons --- lib/react/gather.jsx | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/lib/react/gather.jsx b/lib/react/gather.jsx index 9b7dea0..1733b82 100644 --- a/lib/react/gather.jsx +++ b/lib/react/gather.jsx @@ -663,21 +663,35 @@ var Gather = React.createClass({ ); } - return ( -
-
-
Current Gather
-
- - + if (gather.gatherers.length > 0) { + return ( +
+
+
Current Gather
+
+ + +
+ + {gatherTeams} + {voting} + {previousGather}
- - {gatherTeams} - {voting} - {previousGather} -
- ); + ); + } else { + return ( +
+
+
Current Gather
+
Be the first to join the gather +
+
+ +
+ ); + } + } });