mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore(mobile): Add const linter (#14447)
This commit is contained in:
parent
4eb7758f56
commit
1bb6926b5e
14 changed files with 39 additions and 34 deletions
|
|
@ -46,7 +46,7 @@ class AlbumViewerAppbar extends HookConsumerWidget
|
|||
final bool success;
|
||||
if (album.shared) {
|
||||
success = await ref.watch(albumProvider.notifier).deleteAlbum(album);
|
||||
context.navigateTo(TabControllerRoute(children: [AlbumsRoute()]));
|
||||
context.navigateTo(const TabControllerRoute(children: [AlbumsRoute()]));
|
||||
} else {
|
||||
success = await ref.watch(albumProvider.notifier).deleteAlbum(album);
|
||||
context
|
||||
|
|
@ -113,7 +113,7 @@ class AlbumViewerAppbar extends HookConsumerWidget
|
|||
await ref.watch(albumProvider.notifier).leaveAlbum(album);
|
||||
|
||||
if (isSuccess) {
|
||||
context.navigateTo(TabControllerRoute(children: [AlbumsRoute()]));
|
||||
context.navigateTo(const TabControllerRoute(children: [AlbumsRoute()]));
|
||||
} else {
|
||||
context.pop();
|
||||
ImmichToast.show(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue