don't render at all when tab not selected

This commit is contained in:
Yanick Champoux 2022-04-10 18:35:53 -04:00
parent 381d497a15
commit 277eb9e7a0

View File

@ -13,9 +13,10 @@
<div class:hide={activeTab !== 'json'}>
<JsonOutput />
</div>
<div class:hide={activeTab !== 'print'}>
{#if activeTab === 'print'}
<PrintOutput ship={$state}/>
</div>
{/if}
</main>