From 4d80cd794cd8e7922d5ef17dca3ad284d676f6eb Mon Sep 17 00:00:00 2001 From: Zied Dahmani Date: Fri, 27 Sep 2024 11:32:00 +0100 Subject: [PATCH] fix: clean up post merge --- lib/core/di/di_setup.dart | 1 - lib/core/di/usecases_module.dart | 4 +--- .../proposals/history/interactor/proposals_history_bloc.dart | 3 ++- lib/ui/proposals/list/components/proposals_view.dart | 1 + 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/core/di/di_setup.dart b/lib/core/di/di_setup.dart index b4dbca63..aa26e071 100644 --- a/lib/core/di/di_setup.dart +++ b/lib/core/di/di_setup.dart @@ -76,7 +76,6 @@ import 'package:hypha_wallet/ui/profile/usecases/set_name_use_case.dart'; import 'package:hypha_wallet/ui/proposals/details/usecases/get_proposal_details_use_case.dart'; import 'package:hypha_wallet/ui/proposals/filter/interactor/filter_proposals_bloc.dart'; import 'package:hypha_wallet/ui/proposals/filter/usecases/aggregate_dao_proposal_counts_use_case.dart'; -import 'package:hypha_wallet/ui/proposals/filter/usecases/get_daos_from_proposal_counts_use_case.dart'; import 'package:hypha_wallet/ui/proposals/history/interactor/proposals_history_bloc.dart'; import 'package:hypha_wallet/ui/proposals/list/interactor/proposals_bloc.dart'; import 'package:hypha_wallet/ui/proposals/list/usecases/get_proposals_use_case.dart'; diff --git a/lib/core/di/usecases_module.dart b/lib/core/di/usecases_module.dart index 585debdd..3f0daa6a 100644 --- a/lib/core/di/usecases_module.dart +++ b/lib/core/di/usecases_module.dart @@ -88,6 +88,4 @@ void _registerUseCasesModule() { _registerFactory(() => GetProposalDetailsUseCase(_getIt(), _getIt())); _registerFactory(() => AggregateDaoProposalCountsUseCase()); - - _registerFactory(() => GetDaosFromProposalCountsUseCase()); -} \ No newline at end of file +} diff --git a/lib/ui/proposals/history/interactor/proposals_history_bloc.dart b/lib/ui/proposals/history/interactor/proposals_history_bloc.dart index b0c85339..9268f0da 100644 --- a/lib/ui/proposals/history/interactor/proposals_history_bloc.dart +++ b/lib/ui/proposals/history/interactor/proposals_history_bloc.dart @@ -7,6 +7,7 @@ import 'package:hypha_wallet/core/network/models/proposal_model.dart'; import 'package:hypha_wallet/ui/architecture/interactor/page_states.dart'; import 'package:hypha_wallet/ui/architecture/result/result.dart'; import 'package:hypha_wallet/ui/proposals/filter/interactor/filter_status.dart'; +import 'package:hypha_wallet/ui/proposals/list/interactor/get_proposals_use_case_input.dart'; import 'package:hypha_wallet/ui/proposals/list/usecases/get_proposals_use_case.dart'; part 'proposals_history_bloc.freezed.dart'; @@ -27,7 +28,7 @@ class ProposalsHistoryBloc extends Bloc, HyphaError> proposalsResult = await _getProposalsUseCase.run([_dao], FilterStatus.past); + final Result, HyphaError> proposalsResult = await _getProposalsUseCase.run(GetProposalsUseCaseInput([_dao], FilterStatus.past)); if (proposalsResult.isValue) { emit(state.copyWith(pageState: PageState.success, proposals: proposalsResult.asValue!.value)); diff --git a/lib/ui/proposals/list/components/proposals_view.dart b/lib/ui/proposals/list/components/proposals_view.dart index ecbbf823..d911b295 100644 --- a/lib/ui/proposals/list/components/proposals_view.dart +++ b/lib/ui/proposals/list/components/proposals_view.dart @@ -12,6 +12,7 @@ import 'package:hypha_wallet/ui/blocs/authentication/authentication_bloc.dart'; import 'package:hypha_wallet/ui/profile/profile_page.dart'; import 'package:hypha_wallet/ui/proposals/components/proposals_list.dart'; import 'package:hypha_wallet/ui/proposals/filter/filter_proposals_page.dart'; +import 'package:hypha_wallet/ui/proposals/filter/interactor/filter_proposals_bloc.dart'; import 'package:hypha_wallet/ui/proposals/filter/interactor/filter_status.dart'; import 'package:hypha_wallet/ui/proposals/list/interactor/proposals_bloc.dart'; import 'package:hypha_wallet/ui/shared/hypha_body_widget.dart';