wait for list memberships to load before becoming interactive (#1140)

* wait for list memberships to load before becoming interactive

* add spinner

* remove secondary spinner
This commit is contained in:
Eric Bailey 2023-08-09 17:50:40 -05:00 committed by GitHub
parent b5511e1450
commit 48813a96d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 31 deletions

View file

@ -1,6 +1,5 @@
import React, {MutableRefObject} from 'react'
import {
ActivityIndicator,
RefreshControl,
StyleProp,
StyleSheet,
@ -166,18 +165,6 @@ export const ListsList = observer(
],
)
const Footer = React.useCallback(
() =>
listsList.isLoading ? (
<View style={styles.feedFooter}>
<ActivityIndicator />
</View>
) : (
<View />
),
[listsList],
)
return (
<View testID={testID} style={style}>
{data.length > 0 && (
@ -187,7 +174,6 @@ export const ListsList = observer(
data={data}
keyExtractor={item => item._reactKey}
renderItem={renderItemInner}
ListFooterComponent={Footer}
refreshControl={
<RefreshControl
refreshing={isRefreshing}