From 09cbbdd4381622442477bdd05747ee0e5f1282a1 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Sat, 23 Nov 2024 00:04:48 +0100 Subject: [PATCH] fix: better room creation --- src/components/NewRoom.tsx | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/src/components/NewRoom.tsx b/src/components/NewRoom.tsx index 071f450..e8876c3 100644 --- a/src/components/NewRoom.tsx +++ b/src/components/NewRoom.tsx @@ -27,7 +27,7 @@ export const NewRoom = ({}) => { // const [questions, setQuestions] = useState<{ group: string; name: string }[]>([{ group: '', name: '' }]) const [questions, setQuestions] = useState<{ group: string; name: string }[]>( Array.from({ length: 18 }, (_, i) => ({ - group: `P${Math.floor(i / 6) + 1}`, + group: ['A', 'B', 'C'][Math.floor(i / 6)], name: `${(i % 6) + 1}`, })) ) @@ -53,20 +53,21 @@ export const NewRoom = ({}) => {