🔨 Refactor project page data handling

- Update project page to use `LayoutData` type
- Refactor `project` assignment to use `$:` syntax

[src/routes/projects/[projectId]/+page.svelte]
- Change the imported type from `PageData` to `LayoutData`
- Update the data assignment to use the `LayoutData` type
- Update the `project` assignment to use the `$:` syntax
This commit is contained in:
Kiril Videlov 2023-03-03 13:54:56 +01:00
parent b8e4543bd5
commit b1bffd8d7e

View File

@ -1,8 +1,8 @@
<script lang="ts">
import type { PageData } from './$types';
import type { LayoutData } from './$types';
export let data: PageData;
const { project } = data;
export let data: LayoutData;
$: project = data.project;
</script>
<div class="flex flex-col mt-12">