@@ -37,26 +37,27 @@ function useInterval(callback: () => unknown, delay: number) {
3737
3838const ImageUrl = `https://images.unsplash.com/photo-1610746334198-e7525c63509c?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&h=900` ;
3939const 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
4142const 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
4849const 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
5556const 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
6263const sources = [ validSource , inValidSource , invalidImageOnlySource ] ;
0 commit comments