Archived
change unsplash query
This commit is contained in:
+1
-1
@@ -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 getRandomBackground = () =>
|
||||
unsplashApi.photos.getRandom({ count: 10, collectionIds: ['114728'] });
|
||||
unsplashApi.photos.getRandom({ count: 20, query: 'dark wallpaper' });
|
||||
|
||||
Reference in New Issue
Block a user