feat: remove props destructuring from ProjectCard
This commit is contained in:
parent
516f507ac4
commit
8a2c74a702
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user