From 0725a90976de327baa36ce614d2182aa9680432f Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Wed, 22 Nov 2023 12:09:30 +0100 Subject: [PATCH] Added the roundHistory & groupName states in the GroupContext.jsx --- client/src/common/contexts/GroupContext.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/common/contexts/GroupContext.jsx b/client/src/common/contexts/GroupContext.jsx index 03d0454..bda945e 100644 --- a/client/src/common/contexts/GroupContext.jsx +++ b/client/src/common/contexts/GroupContext.jsx @@ -8,6 +8,8 @@ export const GroupProvider = ({children}) => { const [allGroups, setAllGroups] = useState([]); const [groups, setGroups] = useState([]); const [round, setRound] = useState([]); + const [roundHistory, setRoundHistory] = useState([]); + const [groupName, setGroupName] = useState(""); const handleJoin = (group) => { setGroups(groups => [...groups, {...group, capital: 25000}]); @@ -64,7 +66,8 @@ export const GroupProvider = ({children}) => { }, []); return ( - + {children} )