mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed image loading at preloader
This commit is contained in:
parent
f2c4026c5c
commit
02bc12f727
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ const ImagePreloader: FC<IProps> = ({ file, onLoad, onClick, className }) => {
|
|||
const [hasError, setHasError] = useState(false);
|
||||
|
||||
const onImageLoad = useCallback(() => {
|
||||
setLoaded(false);
|
||||
setLoaded(true);
|
||||
setHasError(false);
|
||||
|
||||
if (onLoad) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue