1
0

feat: remove props destructuring from ProjectCard

This commit is contained in:
Dominik Pschenitschni 2024-06-26 12:01:12 +02:00 committed by konrad
parent 516f507ac4
commit 8a2c74a702

View File

@ -61,13 +61,11 @@ import {useProjectBackground} from './useProjectBackground'
import {useProjectStore} from '@/stores/projects' import {useProjectStore} from '@/stores/projects'
import {getProjectTitle} from '@/helpers/getProjectTitle' import {getProjectTitle} from '@/helpers/getProjectTitle'
const { const props = defineProps<{
project,
} = defineProps<{
project: IProject, project: IProject,
}>() }>()
const {background, blurHashUrl} = useProjectBackground(project) const {background, blurHashUrl} = useProjectBackground(() => props.project)
const projectStore = useProjectStore() const projectStore = useProjectStore()
</script> </script>