Skip to content

Commit

Permalink
feat(drive detail page): replaces the duplicate more info button with…
Browse files Browse the repository at this point in the history
… detach drive button for the mobile view
  • Loading branch information
matibat committed Sep 20, 2023
1 parent 6b6f441 commit a8bcfef
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions lib/pages/drive_detail/drive_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -861,22 +861,15 @@ class MobileFolderNavigation extends StatelessWidget {
context.read<ProfileCubit>().state is ProfileLoggedIn)
ArDriveDropdownItem(
onClick: () {
final bloc = context.read<DriveDetailCubit>();

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(),
),
),
],
Expand Down

0 comments on commit a8bcfef

Please sign in to comment.