From a76a0a4179d8b5bc8ba5929138f82f1159d9c27a Mon Sep 17 00:00:00 2001 From: sumo_slonik Date: Wed, 25 Jun 2025 15:44:40 +0200 Subject: [PATCH 1/9] add dropdown button to empty report --- src/components/EmptyStateComponent/index.tsx | 38 ++++++++++++------ src/components/EmptyStateComponent/types.ts | 11 ++++- .../MoneyRequestReportActionsList.tsx | 2 +- .../MoneyRequestReportTransactionList.tsx | 2 +- .../SearchMoneyRequestReportEmptyState.tsx | 40 ++++++++++++++++++- src/languages/en.ts | 2 +- 6 files changed, 77 insertions(+), 18 deletions(-) diff --git a/src/components/EmptyStateComponent/index.tsx b/src/components/EmptyStateComponent/index.tsx index 5bd82115fbcd..f4f17d402608 100644 --- a/src/components/EmptyStateComponent/index.tsx +++ b/src/components/EmptyStateComponent/index.tsx @@ -3,6 +3,7 @@ import isEmpty from 'lodash/isEmpty'; import React, {useMemo, useState} from 'react'; import {View} from 'react-native'; import Button from '@components/Button'; +import ButtonWithDropdownMenu from '@components/ButtonWithDropdownMenu'; import ImageSVG from '@components/ImageSVG'; import Lottie from '@components/Lottie'; import Text from '@components/Text'; @@ -103,19 +104,30 @@ function EmptyStateComponent({ {subtitleText ?? {subtitle}} {children} {!isEmpty(buttons) && ( - - {buttons?.map(({buttonText, buttonAction, success, icon, isDisabled, style}) => ( -