Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 5183fee

Browse files
committed
refactor: updated placeholder urls
1 parent fca25a0 commit 5183fee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

example/src/App.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,27 @@ function useInterval(callback: () => unknown, delay: number) {
3737

3838
const ImageUrl = `https://images.unsplash.com/photo-1610746334198-e7525c63509c?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&h=900`;
3939
const ThumbnailUrl = `https://images.unsplash.com/photo-1610746334198-e7525c63509c?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&h=90`;
40+
const placeholderUrl = `https://unsplash.com/a/img/empty-states/photos.png`;
4041

4142
const validSource = {
4243
title: 'Valid Image & Thumbnail',
4344
image: () => `${ImageUrl}&bust=${Math.random()}`,
4445
thumbnail: () => `${ThumbnailUrl}&bust=${Math.random()}`,
45-
placeholder: () => `https://pyt-images.imgix.net/images/place-holder.png`,
46+
placeholder: () => placeholderUrl,
4647
};
4748

4849
const inValidSource = {
4950
title: 'Invalid Image & Thumbnail',
5051
image: () => `not found`,
5152
thumbnail: () => `not found`,
52-
placeholder: () => `https://pyt-images.imgix.net/images/place-holder.png`,
53+
placeholder: () => placeholderUrl,
5354
};
5455

5556
const invalidImageOnlySource = {
5657
title: 'Invalid Image & Valid Thumbnail',
5758
image: () => `not found`,
5859
thumbnail: () => `${ThumbnailUrl}&bust=${Math.random()}`,
59-
placeholder: () => `https://pyt-images.imgix.net/images/place-holder.png`,
60+
placeholder: () => placeholderUrl,
6061
};
6162

6263
const sources = [validSource, inValidSource, invalidImageOnlySource];

0 commit comments

Comments
 (0)