Finish MVP
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user