mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-01 12:26:02 +03:00
🔨 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:
parent
b8e4543bd5
commit
b1bffd8d7e
@ -1,8 +1,8 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { PageData } from './$types';
|
import type { LayoutData } from './$types';
|
||||||
|
|
||||||
export let data: PageData;
|
export let data: LayoutData;
|
||||||
const { project } = data;
|
$: project = data.project;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex flex-col mt-12">
|
<div class="flex flex-col mt-12">
|
||||||
|
Loading…
Reference in New Issue
Block a user