mirror of
https://github.com/immich-app/immich.git
synced 2025-12-27 01:11:42 +03:00
Add text notifying user that no asset is found (#2400)
This commit is contained in:
@@ -26,9 +26,13 @@ class FavoritesPage extends HookConsumerWidget {
|
||||
|
||||
return Scaffold(
|
||||
appBar: buildAppBar(),
|
||||
body: ImmichAssetGrid(
|
||||
assets: ref.watch(favoriteAssetProvider),
|
||||
),
|
||||
body: ref.watch(favoriteAssetProvider).isEmpty
|
||||
? const Center(
|
||||
child: Text('No favorite assets found.'),
|
||||
)
|
||||
: ImmichAssetGrid(
|
||||
assets: ref.watch(favoriteAssetProvider),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user