remove a console.log
This commit is contained in:
parent
9a37720c86
commit
255b296012
@ -3,38 +3,35 @@
|
||||
</svelte:head>
|
||||
|
||||
<main>
|
||||
<Ribbon />
|
||||
<Header on:changeTab={({ detail }) => (activeTab = detail)} />
|
||||
|
||||
<Ribbon />
|
||||
<Header on:changeTab={({ detail }) => activeTab = detail}/>
|
||||
|
||||
<div class:hide={activeTab !== 'editor'}>
|
||||
<div class:hide={activeTab !== "editor"}>
|
||||
<ShipEdit />
|
||||
</div>
|
||||
<div class:hide={activeTab !== 'json'}>
|
||||
</div>
|
||||
<div class:hide={activeTab !== "json"}>
|
||||
<JsonOutput />
|
||||
</div>
|
||||
|
||||
{#if activeTab === 'print'}
|
||||
<PrintOutput ship={$state}/>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if activeTab === "print"}
|
||||
<PrintOutput ship={$state} />
|
||||
{/if}
|
||||
</main>
|
||||
|
||||
<script>
|
||||
import { getContext } from 'svelte';
|
||||
import { getContext } from "svelte";
|
||||
import { Modal, Card, Nav } from "svelte-chota";
|
||||
|
||||
import Ribbon from "./Ribbon.svelte";
|
||||
import Header from "./Header.svelte";
|
||||
import ShipEdit from "./ShipEdit/index.svelte";
|
||||
import About from "./About.svelte";
|
||||
import JsonOutput from './Output/Json.svelte';
|
||||
import PrintOutput from './Output/Print/index.svelte';
|
||||
import JsonOutput from "./Output/Json.svelte";
|
||||
import PrintOutput from "./Output/Print/index.svelte";
|
||||
|
||||
let activeTab = 'editor';
|
||||
$: console.log(activeTab);
|
||||
let activeTab = "editor";
|
||||
|
||||
const {state} = getContext('ship');
|
||||
const { state } = getContext("ship");
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
Loading…
Reference in New Issue
Block a user