Finish MVP

This commit is contained in:
2023-12-05 17:55:48 +01:00
parent 0fc220ce94
commit 224a3929aa
12 changed files with 270 additions and 10 deletions

View File

@@ -7,10 +7,12 @@
import type {SchematicList} from "../types/schem.ts";
import SchematicInfo from "./SchematicInfo.svelte";
import UploadModal from "./UploadModal.svelte";
import type {Player} from "../types/data.ts";
const dispatch = createEventDispatcher();
export let schematics: SchematicList;
export let user: Player;
let uploadOpen = false;
let infoModalId: number | null = null;
@@ -96,7 +98,7 @@
<UploadModal bind:open={uploadOpen} on:refresh />
{#if infoModalId !== null}
<SchematicInfo schematicId={infoModalId} on:reset={() => infoModalId = null} />
<SchematicInfo schematicId={infoModalId} {user} on:reset={() => infoModalId = null} />
{/if}
<style lang="postcss">