don't render at all when tab not selected

main
Yanick Champoux 2022-04-10 18:35:53 -04:00
parent 381d497a15
commit 277eb9e7a0
1 changed files with 3 additions and 2 deletions

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>