change unsplash query

This commit is contained in:
Georgi Gardev
2023-11-18 17:56:03 +02:00
parent cc16c1c5fa
commit 5d13b61fdf
+1 -1
View File
@@ -5,4 +5,4 @@ const UNSPLASH_ACCESS_KEY = import.meta.env.VITE_UNSPLASH_ACCESS_KEY;
export const unsplashApi = createApi({ accessKey: UNSPLASH_ACCESS_KEY, fetch }); export const unsplashApi = createApi({ accessKey: UNSPLASH_ACCESS_KEY, fetch });
export const getRandomBackground = () => export const getRandomBackground = () =>
unsplashApi.photos.getRandom({ count: 10, collectionIds: ['114728'] }); unsplashApi.photos.getRandom({ count: 20, query: 'dark wallpaper' });