From 2422debdbbacc03fa3076bd1eb024b4885049fe8 Mon Sep 17 00:00:00 2001
From: Johannes Klein <17345891+jtklein@users.noreply.github.com>
Date: Tue, 30 Jun 2026 13:49:34 +0200
Subject: [PATCH] Add stable empty list component
---
src/components/AddToProjects/AddToProjects.tsx | 13 +++++++++++++
src/i18n/l10n/en.ftl | 1 +
src/i18n/l10n/en.ftl.json | 1 +
src/i18n/strings.ftl | 1 +
4 files changed, 16 insertions(+)
diff --git a/src/components/AddToProjects/AddToProjects.tsx b/src/components/AddToProjects/AddToProjects.tsx
index 176080281..24f59093c 100644
--- a/src/components/AddToProjects/AddToProjects.tsx
+++ b/src/components/AddToProjects/AddToProjects.tsx
@@ -24,6 +24,17 @@ const AddToProjects = ( ) => {
[t],
);
+ const listEmptyComponent = useMemo(
+ ( ) => (
+
+
+ {t( "You-havent-joined-any-Traditional-Projects-yet" )}
+
+
+ ),
+ [t],
+ );
+
const listFooterComponent = useMemo(
() => (
@@ -48,8 +59,10 @@ const AddToProjects = ( ) => {
);
diff --git a/src/i18n/l10n/en.ftl b/src/i18n/l10n/en.ftl
index 4969fb9df..6742ae065 100644
--- a/src/i18n/l10n/en.ftl
+++ b/src/i18n/l10n/en.ftl
@@ -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
diff --git a/src/i18n/l10n/en.ftl.json b/src/i18n/l10n/en.ftl.json
index c2ce4a66f..f0732adc8 100644
--- a/src/i18n/l10n/en.ftl.json
+++ b/src/i18n/l10n/en.ftl.json
@@ -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",
diff --git a/src/i18n/strings.ftl b/src/i18n/strings.ftl
index 4969fb9df..6742ae065 100644
--- a/src/i18n/strings.ftl
+++ b/src/i18n/strings.ftl
@@ -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