Merge pull request 'Release v0.4.0: Fix skeleton loading for imgs' (#100) from v0.4.0/add-loading-skeletons into develop

Reviewed-on: #100
This commit is contained in:
lamacchinadesiderante 2024-05-25 14:52:20 +00:00
commit f5bf29285f
2 changed files with 7 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "proxyraye-next",
"version": "0.3.0",
"version": "0.4.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "proxyraye-next",
"version": "0.3.0",
"version": "0.4.0",
"dependencies": {
"@picocss/pico": "2.0.6",
"@reduxjs/toolkit": "2.2.3",

View File

@ -31,7 +31,11 @@ const Thumbnail: React.FC<Props> = (props) => {
return (
<div className={classNames(style.thumbnailContainer, { [style.show]: show } )}>
<Link href={`/${locale}/video/${platform}/${encodedUri}`}>
<Img className={style.image} src={imgUrl} unloader={<div className={style.imgPlaceholder}></div>} />
<Img
className={style.image}
src={imgUrl}
loader={<div className={style.imgPlaceholder}></div>}
unloader={<div className={style.imgPlaceholder}></div>} />
<div className={style.text}>{text}</div>
</Link>
</div>