You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
520 B
16 lines
520 B
import { DEFAULT_IMAGES } from "~/config/paths";
|
|
|
|
export const handleLightboxImageError = (event: Event): void => {
|
|
const target = event.target as HTMLImageElement;
|
|
target.src = DEFAULT_IMAGES.PROJECT;
|
|
};
|
|
|
|
export const handleImageError = (event: Event): void => {
|
|
const target = event.target as HTMLImageElement;
|
|
target.src = DEFAULT_IMAGES.PROJECT;
|
|
};
|
|
|
|
export const handleIconError = (event: Event): void => {
|
|
const target = event.target as HTMLImageElement;
|
|
target.src = DEFAULT_IMAGES.ICON;
|
|
}; |