Skip to content

Commit

Permalink
fix spanish translation, types
Browse files Browse the repository at this point in the history
  • Loading branch information
c3024 committed Oct 17, 2024
1 parent 3822f77 commit d263ff5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/EmptyStateComponent/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ import type IconAsset from '@src/types/utils/IconAsset';

type ValidSkeletons = typeof SearchRowSkeleton | typeof TableRowSkeleton;
type MediaTypes = ValueOf<typeof CONST.EMPTY_STATE_MEDIA>;
type Button = {buttonText?: string; buttonAction?: () => void; success?: boolean};

type SharedProps<T> = {
SkeletonComponent: ValidSkeletons;
title: string;
titleStyles?: StyleProp<TextStyle>;
subtitle: string | React.ReactNode;
buttons?: Array<{buttonText?: string; buttonAction?: () => void; success?: boolean}>;
buttons?: Array<Button>;

Check failure on line 19 in src/components/EmptyStateComponent/types.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Array type using 'Array<Button>' is forbidden for simple types. Use 'Button[]' instead
containerStyles?: StyleProp<ViewStyle>;
headerStyles?: StyleProp<ViewStyle>;
headerMediaType: T;
Expand Down
4 changes: 2 additions & 2 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4293,7 +4293,7 @@ const translations = {
},
emptyExpenseResults: {
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.',
subtitle: 'Usa el botón verde de abajo para crear un gasto o haz un tour por Expensify para aprender más.',
},
emptyTripResults: {
title: 'No tienes viajes',
Expand Down Expand Up @@ -5598,7 +5598,7 @@ const translations = {
},
},
emptySearchView: {
takeATour: 'Realiza un recorrido',
takeATour: 'Haz un tour',
},
};

Expand Down

0 comments on commit d263ff5

Please sign in to comment.