From 5b1fedd9c1f0b25c239b3fef9f5fa4ca4fb472c4 Mon Sep 17 00:00:00 2001
From: Christof Bauer <christof.bauer@holi.team>
Date: Tue, 4 Feb 2025 08:09:56 +0000
Subject: [PATCH] NOISSUE: Fix empty cta state in own connections tab

---
 core/i18n/locales/de.json                              | 2 +-
 core/i18n/locales/en.json                              | 2 +-
 core/screens/userprofile/components/OwnProfileView.tsx | 7 +------
 3 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/core/i18n/locales/de.json b/core/i18n/locales/de.json
index 4cdd0a5a40..3f9af8c825 100644
--- a/core/i18n/locales/de.json
+++ b/core/i18n/locales/de.json
@@ -1168,7 +1168,6 @@
   "spaces.invite.btn.invite": "Einladen",
   "spaces.invite.btn.send": "Einladung verschicken",
   "spaces.invite.connections.empty": "Du hast noch keine Verbindungen",
-  "spaces.invite.connections.empty.cta": "Erweitere dein Netzerk auf holi",
   "spaces.invite.connections.header": "Deine Verbindungen",
   "spaces.invite.connections.report": "Benutzer:in melden",
   "spaces.invite.decline.success": "Einladung abgelehnt",
@@ -1451,6 +1450,7 @@
   "user.interests.form.headline": "Beteilige dich an dem, was dir wichtig ist",
   "user.interests.form.subline": "Wir passen die Empfehlungen basierend auf deiner Auswahl an. Du kannst deine Themen jederzeit in deinen Profileinstellungen ändern.",
   "user.profile.connections.title.empty": "Benutzer:in hat noch keine Kontakte",
+  "user.profile.own.connections.title.empty": "Du hast noch keine Verbindungen",
   "user.profile.validation.avatar.invalid_image": "Die hochgeladene Datei ist entweder kein valides Bild oder die Datei ist beschädigt",
   "user.profile.validation.avatar.max_upload_size": "Die hochgeladene Datei ist größer als 10MB",
   "user.profile.validation.firstName.maxCharacters": "Vorname darf maximal {{value}} Zeichen lang sein",
diff --git a/core/i18n/locales/en.json b/core/i18n/locales/en.json
index b505fe4310..76a94a5430 100644
--- a/core/i18n/locales/en.json
+++ b/core/i18n/locales/en.json
@@ -1167,7 +1167,6 @@
   "spaces.invite.btn.invite": "Invite",
   "spaces.invite.btn.send": "Send invite",
   "spaces.invite.connections.empty": "You don't have any connections yet",
-  "spaces.invite.connections.empty.cta": "Discover holi users",
   "spaces.invite.connections.header": "Your connections",
   "spaces.invite.connections.report": "Report user",
   "spaces.invite.decline.success": "Invitation declined",
@@ -1451,6 +1450,7 @@
   "user.interests.form.headline": "Get engaged in topics that matter to you",
   "user.interests.form.subline": "We'll customize recommendations based on your selection. You can change your topics any time in your profile settings.",
   "user.profile.connections.title.empty": "This user doesn't have any connections yet",
+  "user.profile.own.connections.title.empty": "You don't have any connections yet",
   "user.profile.validation.avatar.invalid_image": "The file you uploaded is not a valid image or the file is corrupt",
   "user.profile.validation.avatar.max_upload_size": "The file you uploaded is bigger than 10MB",
   "user.profile.validation.firstName.maxCharacters": "First name may be a maximum of {{value}} characters long",
diff --git a/core/screens/userprofile/components/OwnProfileView.tsx b/core/screens/userprofile/components/OwnProfileView.tsx
index 5137bf1e80..1b92198f25 100644
--- a/core/screens/userprofile/components/OwnProfileView.tsx
+++ b/core/screens/userprofile/components/OwnProfileView.tsx
@@ -151,12 +151,7 @@ const OwnProfileView = ({ user, toggleEditMode, activeTab, onTabChange }: PropsW
           {
             key: Tab.CONNECTIONS,
             tabTitle: t('profile.tabs.connections'),
-            content: () => (
-              <OwnConnectionsTab
-                emptyText={t('spaces.invite.connections.empty')}
-                emptyCallToAction={t('spaces.invite.connections.empty.cta')}
-              />
-            ),
+            content: () => <OwnConnectionsTab emptyText={t('user.profile.own.connections.title.empty')} />,
           },
         ]}
         keyExtractor={(item) => item.key}
-- 
GitLab