mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
(nextjs) fixed image preloaders for SSR
This commit is contained in:
parent
7e14b52bf9
commit
d30cad9caa
4 changed files with 27 additions and 2 deletions
|
@ -33,6 +33,9 @@ const CoverBackdrop: FC<IProps> = ({ cover }) => {
|
|||
className={classNames(styles.cover, { [styles.active]: is_loaded })}
|
||||
style={{ backgroundImage: `url("${image}")` }}
|
||||
>
|
||||
{
|
||||
// TODO: use ImageWithSSRLoad here if you will face any bugs
|
||||
}
|
||||
<img onLoad={onLoad} ref={ref} alt="" />
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue