From c83f5431421257465f645fc33c6687e89eb6f201 Mon Sep 17 00:00:00 2001 From: Jorge Moya Date: Tue, 30 Jul 2024 14:36:24 -0500 Subject: [PATCH] fix: cleaner logic for tab title --- .../(default)/account/[tab]/layout.tsx | 13 ++++++++-- core/tests/ui/desktop/e2e/account.spec.ts | 26 +++++++++---------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/core/app/[locale]/(default)/account/[tab]/layout.tsx b/core/app/[locale]/(default)/account/[tab]/layout.tsx index 9bf794259..7d30d172b 100644 --- a/core/app/[locale]/(default)/account/[tab]/layout.tsx +++ b/core/app/[locale]/(default)/account/[tab]/layout.tsx @@ -33,12 +33,21 @@ export default async function AccountTabLayout({ const messages = await getMessages(); + const tabsTitles = { + orders: t('orders'), + messages: t('messages'), + addresses: t('addresses'), + wishlists: t('wishlists'), + 'recently-viewed': t('recentlyViewed'), + settings: t('settings'), + }; + return (

{t('heading')}