mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Homepage loading improvements
This commit is contained in:
parent
ecf62a1008
commit
a11c9dff65
1 changed files with 16 additions and 16 deletions
|
@ -379,23 +379,23 @@ export default function Home() {
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
} else if (
|
||||||
|
(StudentStatusQuery.isFetching && studying) ||
|
||||||
|
StudentStatusListQuery.isFetching ||
|
||||||
|
StudyGroupQuery.isFetching ||
|
||||||
|
(StudentStatusQuery.isFetching && !studying) ||
|
||||||
|
StudentStatusListGlobalQuery.isFetching ||
|
||||||
|
StudyGroupGlobalQuery.isFetching
|
||||||
|
) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<View style={{ paddingVertical: 8 }} />
|
||||||
|
<ActivityIndicator size={96} color={colors.secondary_1} />
|
||||||
|
<Text style={styles.text_white_medium}>Loading...</Text>
|
||||||
|
</>
|
||||||
|
);
|
||||||
} else if (dist && location) {
|
} else if (dist && location) {
|
||||||
if (
|
if (dist <= 1 || map_distance_override) {
|
||||||
(StudentStatusQuery.isFetching && studying) ||
|
|
||||||
StudentStatusListQuery.isFetching ||
|
|
||||||
StudyGroupQuery.isFetching ||
|
|
||||||
(StudentStatusQuery.isFetching && !studying) ||
|
|
||||||
StudentStatusListGlobalQuery.isFetching ||
|
|
||||||
StudyGroupGlobalQuery.isFetching
|
|
||||||
) {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<View style={{ paddingVertical: 8 }} />
|
|
||||||
<ActivityIndicator size={96} color={colors.secondary_1} />
|
|
||||||
<Text style={styles.text_white_medium}>Loading...</Text>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
} else if (dist <= 1 || map_distance_override) {
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<View style={{ alignSelf: "flex-end" }}>
|
<View style={{ alignSelf: "flex-end" }}>
|
||||||
|
|
Loading…
Reference in a new issue