feat(#46): Move change view button to sidebar

This commit is contained in:
Josh Creek
2024-07-17 22:15:43 +01:00
parent bfde0c49f5
commit a4269259f9
2 changed files with 11 additions and 3 deletions
+2 -3
View File
@@ -245,9 +245,7 @@
>
{drawerOpen ? 'Close Filters' : 'Open Filters'}
</label>
<button class="btn btn-primary" on:click={toggleViewAsBoxes}>
{viewAsBoxes ? 'Switch to List View' : 'Switch to Box View'}
</button>
{#if viewAsBoxes}
<PokedexViewBoxes
bind:showShiny
@@ -292,6 +290,7 @@
{toggleForms}
{toggleOrigins}
{toggleShiny}
{toggleViewAsBoxes}
/>
</div>
</div>