From a8bcfefa99a2917049124d959900d24adfe33ead Mon Sep 17 00:00:00 2001 From: Mati Date: Wed, 20 Sep 2023 17:57:36 -0300 Subject: [PATCH] feat(drive detail page): replaces the duplicate more info button with detach drive button for the mobile view --- lib/pages/drive_detail/drive_detail_page.dart | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/lib/pages/drive_detail/drive_detail_page.dart b/lib/pages/drive_detail/drive_detail_page.dart index 1aa1e3b1d7..f74c977cc7 100644 --- a/lib/pages/drive_detail/drive_detail_page.dart +++ b/lib/pages/drive_detail/drive_detail_page.dart @@ -861,22 +861,15 @@ class MobileFolderNavigation extends StatelessWidget { context.read().state is ProfileLoggedIn) ArDriveDropdownItem( onClick: () { - final bloc = context.read(); - - bloc.selectDataItem( - DriveDataTableItemMapper.fromDrive( - state.currentDrive, - (_) => null, - 0, - isOwner, - ), + showDetachDriveDialog( + context: context, + driveID: state.currentDrive.id, + driveName: state.currentDrive.name, ); }, content: _buildItem( - appLocalizationsOf(context).moreInfo, - ArDriveIcons.info( - size: defaultIconSize, - ), + appLocalizationsOf(context).detachDrive, + ArDriveIcons.detach(), ), ), ],