diff --git a/components/TheFooter.vue b/components/TheFooter.vue index 119b77e..439a374 100644 --- a/components/TheFooter.vue +++ b/components/TheFooter.vue @@ -23,7 +23,7 @@ import { TEXTS } from '~/config/content'; import { PATHS , DEFAULT_IMAGES} from '~/config/paths'; -export const handleIconError = (payload: string | Event) => { +const handleIconError = (payload: string | Event) => { if (payload instanceof Event) { const target = payload.target as HTMLImageElement; target.src = DEFAULT_IMAGES.ICON; diff --git a/pages/projects/[id]/index.vue b/pages/projects/[id]/index.vue index 4047d72..6f67317 100644 --- a/pages/projects/[id]/index.vue +++ b/pages/projects/[id]/index.vue @@ -85,23 +85,23 @@ import { PATHS , DEFAULT_IMAGES} from '~/config/paths'; import { projects } from '~/config/projects'; import type { Project } from '~/types/project'; -export const handleLightboxImageError = (event: Event): void => { +const handleLightboxImageError = (event: Event): void => { const target = event.target as HTMLImageElement; target.src = DEFAULT_IMAGES.PROJECT; }; -export const handleImageError = (event: Event): void => { +const handleImageError = (event: Event): void => { const target = event.target as HTMLImageElement; target.src = DEFAULT_IMAGES.PROJECT; }; -export const handleIconError = (event: Event): void => { +const handleIconError = (event: Event): void => { const target = event.target as HTMLImageElement; target.src = DEFAULT_IMAGES.ICON; }; -export const useProjectDetail = (id: number) => { +const useProjectDetail = (id: number) => { const { $theme } = useNuxtApp(); const showLightbox = ref(false); const currentImageIndex = ref(0);