From 3e9b026ce8a634a1fe272bf046a6826ab0696019 Mon Sep 17 00:00:00 2001 From: c3024 Date: Wed, 16 Oct 2024 23:23:38 +0530 Subject: [PATCH 1/7] add navattic tours in empty search modal --- src/CONST.ts | 5 +++ src/components/EmptyStateComponent/index.tsx | 24 ++++++------ src/components/EmptyStateComponent/types.ts | 3 +- src/languages/en.ts | 7 ++++ src/languages/es.ts | 7 ++++ src/pages/Search/EmptySearchView.tsx | 40 +++++++++++++++++--- src/styles/utils/sizing.ts | 4 ++ 7 files changed, 71 insertions(+), 19 deletions(-) diff --git a/src/CONST.ts b/src/CONST.ts index caca91a59055..2bade9749990 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -753,6 +753,11 @@ const CONST = { DELAYED_SUBMISSION_HELP_URL: 'https://help.expensify.com/articles/expensify-classic/reports/Automatically-submit-employee-reports', // Use Environment.getEnvironmentURL to get the complete URL with port number DEV_NEW_EXPENSIFY_URL: 'https://dev.new.expensify.com:', + NAVATTIC: { + ADMIN_TOUR: 'http://expensify.navattic.com/kh204a7', + EMPLOYEE_TOUR: 'http://expensify.navattic.com/35609gb', + }, + OLDDOT_URLS: { ADMIN_POLICIES_URL: 'admin_policies', ADMIN_DOMAINS_URL: 'admin_domains', diff --git a/src/components/EmptyStateComponent/index.tsx b/src/components/EmptyStateComponent/index.tsx index 8eb991b17b63..4398023b7424 100644 --- a/src/components/EmptyStateComponent/index.tsx +++ b/src/components/EmptyStateComponent/index.tsx @@ -18,8 +18,7 @@ function EmptyStateComponent({ SkeletonComponent, headerMediaType, headerMedia, - buttonText, - buttonAction, + buttons, containerStyles, title, titleStyles, @@ -99,15 +98,18 @@ function EmptyStateComponent({ {title} {typeof subtitle === 'string' ? {subtitle} : subtitle} - {!!buttonText && !!buttonAction && ( -