mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-06-29 00:35:46 +08:00
Fixed left and right caret icons
This commit is contained in:
parent
a65a3a84aa
commit
8a32d2b32c
3 changed files with 8 additions and 6 deletions
|
@ -71,7 +71,7 @@ export default function ConversationPage() {
|
|||
enabled:
|
||||
student_status?.study_group != "" && student_status?.study_group != null,
|
||||
queryKey: ["study_group"],
|
||||
refetchInterval: 20,
|
||||
refetchInterval: 10000,
|
||||
queryFn: async () => {
|
||||
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<GroupMessageAvatarType[]>([]);
|
||||
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"}
|
||||
</Text>
|
||||
{users.map((user: GroupMessageAvatarType, index: number) => {
|
||||
if (index > 6) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue