mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-01 04:14:45 +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">
|
||||
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">
|
||||
|
Loading…
Reference in New Issue
Block a user