From 64ca06bfc3647c78b199b50c1f505562ada09cf4 Mon Sep 17 00:00:00 2001 From: Louis Rouffineau Date: Thu, 16 Jan 2025 19:19:38 +0100 Subject: [PATCH] feat(Profile): update context menu styling and fix edit mode - Add Done button in header when in edit mode - Fix edit mode toggle functionality - Update context menu items with proper type safety - Remove copy address option from other users' profiles - Remove 0x wallet address from share own profile view --- .../conversation-list.screen-header.tsx | 2 +- features/profiles/components/ContactCard.tsx | 5 +- i18n/translations/en.ts | 4 +- i18n/translations/fr.ts | 3 + screens/Profile.tsx | 219 +++++++++++------- screens/ShareProfile.tsx | 5 - 6 files changed, 139 insertions(+), 99 deletions(-) diff --git a/features/conversation-list/conversation-list.screen-header.tsx b/features/conversation-list/conversation-list.screen-header.tsx index 9a04a375c..1c6c35a76 100644 --- a/features/conversation-list/conversation-list.screen-header.tsx +++ b/features/conversation-list/conversation-list.screen-header.tsx @@ -148,7 +148,7 @@ export function useHeaderWrapper() { menuItems: [ { actionKey: "app-settings", - actionTitle: translate("App settings"), + actionTitle: translate("app_settings"), icon: { iconType: "SYSTEM", iconValue: iconRegistry["settings"], diff --git a/features/profiles/components/ContactCard.tsx b/features/profiles/components/ContactCard.tsx index de1e79da0..bc81e61fa 100644 --- a/features/profiles/components/ContactCard.tsx +++ b/features/profiles/components/ContactCard.tsx @@ -107,7 +107,8 @@ export const ContactCard = memo(function ContactCard({ name={displayName} size={theme.avatarSize.lg} /> - {isMyProfile && ( + {/* TODO: "Names" menu to pick from when SCW will be done */} + {/* {isMyProfile && (