Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
c3024 committed Oct 17, 2024
1 parent 7346c30 commit 00a5466
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,8 @@ const CONST = {
// 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',
ADMIN_TOUR: 'https://expensify.navattic.com/kh204a7',
EMPLOYEE_TOUR: 'https://expensify.navattic.com/35609gb',
},

OLDDOT_URLS: {
Expand Down
5 changes: 2 additions & 3 deletions src/components/EmptyStateComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,13 @@ function EmptyStateComponent({
<Text style={[styles.textAlignCenter, styles.textHeadlineH1, styles.mb2, titleStyles]}>{title}</Text>
{typeof subtitle === 'string' ? <Text style={[styles.textAlignCenter, styles.textSupporting, styles.textNormal]}>{subtitle}</Text> : subtitle}
<View style={[styles.gap2, styles.mt5, !shouldUseNarrowLayout ? styles.flexRow : undefined]}>
{buttons?.map(({buttonText, buttonAction, success}, index) => (
// eslint-disable-next-line react/no-array-index-key
{buttons?.map(({buttonText, buttonAction, success}, index) => (

Check failure on line 102 in src/components/EmptyStateComponent/index.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Delete `······························`
<View
// eslint-disable-next-line react/no-array-index-key
key={index}
style={styles.flex1}
>
<Button
// eslint-disable-next-line react/no-array-index-key
success={success}
onPress={buttonAction}
text={buttonText}
Expand Down
6 changes: 3 additions & 3 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4292,8 +4292,8 @@ const translations = {
subtitle: 'Por favor intenta crear algo usando el botón verde.',
},
emptyExpenseResults: {
title: "You haven't created any expenses yet",
subtitle: 'Use the green button below to create an expense or take a tour of Expensify to learn more.',
title: 'Aún no has creado ningún gasto',
subtitle: 'Usa el botón verde de abajo para crear un gasto o realiza un recorrido por Expensify para aprender más.',
},
emptyTripResults: {
title: 'No tienes viajes',
Expand Down Expand Up @@ -5598,7 +5598,7 @@ const translations = {
},
},
emptySearchView: {
takeATour: 'Take a tour',
takeATour: 'Realiza un recorrido',
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Search/EmptySearchView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ function EmptySearchView({type}: EmptySearchViewProps) {
},
],
};
case CONST.SEARCH.DATA_TYPES.CHAT:
case CONST.SEARCH.DATA_TYPES.EXPENSE:
return {
headerMedia: LottieAnimations.GenericEmptyState,
Expand All @@ -130,6 +129,7 @@ function EmptySearchView({type}: EmptySearchViewProps) {
],
headerContentStyles: styles.emptyStateFolderWebStyles,
};
case CONST.SEARCH.DATA_TYPES.CHAT:
case CONST.SEARCH.DATA_TYPES.INVOICE:
default:
return {
Expand Down

0 comments on commit 00a5466

Please sign in to comment.