From 8a32d2b32ce0cb8aa2f9bd373a57c240b64dfc03 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 27 Oct 2023 22:06:52 +0800 Subject: [PATCH] Fixed left and right caret icons --- src/icons/CaretLeftIcon/CaretLeftIcon.tsx | 4 ++-- .../{CaretLeftIcon.tsx => CaretRightIcon.tsx} | 2 +- src/routes/ConversationPage/ConversationPage.tsx | 8 +++++--- 3 files changed, 8 insertions(+), 6 deletions(-) rename src/icons/CaretRightIcon/{CaretLeftIcon.tsx => CaretRightIcon.tsx} (94%) diff --git a/src/icons/CaretLeftIcon/CaretLeftIcon.tsx b/src/icons/CaretLeftIcon/CaretLeftIcon.tsx index d6f2c5c..eb5655e 100644 --- a/src/icons/CaretLeftIcon/CaretLeftIcon.tsx +++ b/src/icons/CaretLeftIcon/CaretLeftIcon.tsx @@ -18,9 +18,9 @@ export default function CaretRightIcon(props: IconProps) { > diff --git a/src/icons/CaretRightIcon/CaretLeftIcon.tsx b/src/icons/CaretRightIcon/CaretRightIcon.tsx similarity index 94% rename from src/icons/CaretRightIcon/CaretLeftIcon.tsx rename to src/icons/CaretRightIcon/CaretRightIcon.tsx index e2caaa5..eb5655e 100644 --- a/src/icons/CaretRightIcon/CaretLeftIcon.tsx +++ b/src/icons/CaretRightIcon/CaretRightIcon.tsx @@ -3,7 +3,7 @@ import { IconProps } from "../../interfaces/Interfaces"; import { Svg, Path } from "react-native-svg"; import { colors } from "../../styles"; -export default function CaretLeftIcon(props: IconProps) { +export default function CaretRightIcon(props: IconProps) { return ( <> { const data = await GetStudyGroup(student_status?.study_group || ""); if (data[0] == false) { @@ -129,7 +129,7 @@ export default function ConversationPage() { // Avatar List const [users, setUsers] = useState([]); const AvatarsQuery = useQuery({ - refetchInterval: 3000, + refetchInterval: 10000, enabled: student_status?.study_group != null || (student_status?.study_group != "" && @@ -211,7 +211,9 @@ export default function ConversationPage() { paddingRight: 4, }} > - {studygroup.students.length} studying + {!StudyGroupQuery.isFetching + ? studygroup.students.length + " studying" + : "Loading"} {users.map((user: GroupMessageAvatarType, index: number) => { if (index > 6) {