mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-10-06 18:12:22 -04:00
Add stable empty list component
This commit is contained in:
1 parent
c4019bfdc7
commit
2422debdbb
4 files changed
+16
No files matched your search
@@ -24,6 +24,17 @@ const AddToProjects = ( ) => {
|
||||
[t],
|
||||
);
|
||||
|
||||
const listEmptyComponent = useMemo(
|
||||
( ) => (
|
||||
<View className="px-4 items-center">
|
||||
<Body1 className="text-center">
|
||||
{t( "You-havent-joined-any-Traditional-Projects-yet" )}
|
||||
</Body1>
|
||||
</View>
|
||||
),
|
||||
[t],
|
||||
);
|
||||
|
||||
const listFooterComponent = useMemo(
|
||||
() => (
|
||||
<View className="px-4 pt-6 pb-6">
|
||||
@@ -48,8 +59,10 @@ const AddToProjects = ( ) => {
|
||||
<SharedStackViewWrapper testID="add-to-projects">
|
||||
<CustomFlashList
|
||||
testID="AddToProjects.list"
|
||||
ListEmptyComponent={listEmptyComponent}
|
||||
ListHeaderComponent={listHeaderComponent}
|
||||
ListFooterComponent={listFooterComponent}
|
||||
data={[]}
|
||||
/>
|
||||
</SharedStackViewWrapper>
|
||||
);
|
||||
|
||||
@@ -1588,6 +1588,7 @@ You-have-no-notifications-get-started-by-creating-your-own-observations = You ha
|
||||
You-have-no-notifications-you-will-see-updates-to-obs-you-have-left-IDs-or-comments-on = You have no notifications! You will see updates to observations you have left IDs or comments on here.
|
||||
You-have-opted-out-of-the-Community-Taxon = You have opted out of the Community Taxon
|
||||
You-havent-joined-any-projects-yet = You haven’t joined any projects yet!
|
||||
You-havent-joined-any-Traditional-Projects-yet = You haven’t joined any Traditional Projects yet!
|
||||
You-havent-observed-any-species-yet = You haven't observed any species yet.
|
||||
You-likely-observed-a-species-in-this-group = You likely observed a species in this group
|
||||
You-likely-observed-this-species = You likely observed this species
|
||||
|
||||
@@ -951,6 +951,7 @@
|
||||
"You-have-no-notifications-you-will-see-updates-to-obs-you-have-left-IDs-or-comments-on": "You have no notifications! You will see updates to observations you have left IDs or comments on here.",
|
||||
"You-have-opted-out-of-the-Community-Taxon": "You have opted out of the Community Taxon",
|
||||
"You-havent-joined-any-projects-yet": "You haven’t joined any projects yet!",
|
||||
"You-havent-joined-any-Traditional-Projects-yet": "You haven’t joined any Traditional Projects yet!",
|
||||
"You-havent-observed-any-species-yet": "You haven't observed any species yet.",
|
||||
"You-likely-observed-a-species-in-this-group": "You likely observed a species in this group",
|
||||
"You-likely-observed-this-species": "You likely observed this species",
|
||||
|
||||
@@ -1588,6 +1588,7 @@ You-have-no-notifications-get-started-by-creating-your-own-observations = You ha
|
||||
You-have-no-notifications-you-will-see-updates-to-obs-you-have-left-IDs-or-comments-on = You have no notifications! You will see updates to observations you have left IDs or comments on here.
|
||||
You-have-opted-out-of-the-Community-Taxon = You have opted out of the Community Taxon
|
||||
You-havent-joined-any-projects-yet = You haven’t joined any projects yet!
|
||||
You-havent-joined-any-Traditional-Projects-yet = You haven’t joined any Traditional Projects yet!
|
||||
You-havent-observed-any-species-yet = You haven't observed any species yet.
|
||||
You-likely-observed-a-species-in-this-group = You likely observed a species in this group
|
||||
You-likely-observed-this-species = You likely observed this species
|
||||
|
||||
Reference in new issue
Block a user