chore: use reactive props

This commit is contained in:
Daniel Chen
2024-10-16 13:25:13 -04:00
parent 5fd2150beb
commit 6bf5d77a01
8 changed files with 41 additions and 43 deletions

View File

@@ -1,14 +1,12 @@
<script setup lang="ts">
import type { Project } from "@/data/projects";
import { unref as _unref } from "vue";
const props = defineProps<{
const { project } = defineProps<{
project: Project;
reverse?: boolean;
}>();
const imgUrl = props.project.img
? `url(/images/projects/${props.project.img})`
: "none";
const imgUrl = project.img ? `url(/images/projects/${project.img})` : "none";
</script>
<template>