feat(web): Slideshow is enabled everywhere. It no longer needs assetStore. (#15077)

Slideshow no longer needs assetStore. It is enabled everywhere

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Mattia Natali
2025-01-14 15:24:58 +01:00
committed by GitHub
parent f70ee3f350
commit 4279cd6e1e
6 changed files with 128 additions and 46 deletions

View File

@@ -15,9 +15,10 @@ function createAssetViewingStore() {
viewState.set(true);
};
const setAssetId = async (id: string) => {
const setAssetId = async (id: string): Promise<AssetResponseDto> => {
const asset = await getAssetInfo({ id, key: getKey() });
setAsset(asset);
return asset;
};
const showAssetViewer = (show: boolean) => {