From f098db0dcac9e06e4ad1452bb615ed34653720cf Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 19 Oct 2023 18:46:54 +0800 Subject: [PATCH] Added create group button below start studying and increased refresh interval to 30 seconds --- src/routes/Home/Home.tsx | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/routes/Home/Home.tsx b/src/routes/Home/Home.tsx index b0c2b5a..26102d6 100644 --- a/src/routes/Home/Home.tsx +++ b/src/routes/Home/Home.tsx @@ -101,7 +101,7 @@ export default function Home() { useEffect(() => { const interval = setInterval(() => { requestLocation(); - }, 10000); + }, 30000); setTimeout(() => { queryClient.invalidateQueries({ queryKey: ["user"] }); queryClient.invalidateQueries({ queryKey: ["user_status"] }); @@ -892,7 +892,25 @@ export default function Home() { {studying ? : <>} - + {student_status?.active && !student_status?.study_group ? ( + + ) : ( + <> + )} );