We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73a886d commit 904ebb6Copy full SHA for 904ebb6
frontend/src/components/UnsplashUploader.tsx
@@ -11,7 +11,7 @@ const UnsplashUploader = () => {
11
const mounted = useRef(false);
12
const getRandomImage = async () => {
13
if (!timer) {
14
- const response = await fetch('https://source.unsplash.com/random');
+ const response = await fetch(`https://picsum.photos/${280}/${280}?random=${Date.now()}`);
15
setIsLoading(true);
16
timer = setTimeout(function () {
17
timer = null;
@@ -25,7 +25,7 @@ const UnsplashUploader = () => {
25
};
26
useEffect(() => {
27
if (imageSrc === '') {
28
- fetch('https://source.unsplash.com/random').then((response) => {
+ fetch(`https://picsum.photos/${280}/${280}?random=${Date.now()}`).then((response) => {
29
setImageSrc(response.url);
30
});
31
}
0 commit comments