Skip to content

Commit

Permalink
Merge pull request #306 from letehaha/fix/hide-crypto-tab
Browse files Browse the repository at this point in the history
chore: hide crypto tab from prod
  • Loading branch information
letehaha authored Sep 13, 2024
2 parents 33c404f + 981656d commit dadf0a7
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/components/ui-sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,23 @@
class="justify-start w-full px-3"
size="lg"
>
Analytics
Analytics (dev only)
</ui-button>
</router-link>
</template>

<router-link v-slot="{ isActive }" :to="{ name: ROUTES_NAMES.crypto }">
<ui-button
:variant="isActive ? 'default' : 'ghost'"
as="span"
class="justify-start w-full px-3"
size="lg"
>
Crypto
</ui-button>
</router-link>
<template v-if="isDevEnv">
<router-link v-slot="{ isActive }" :to="{ name: ROUTES_NAMES.crypto }">
<ui-button
:variant="isActive ? 'default' : 'ghost'"
as="span"
class="justify-start w-full px-3"
size="lg"
>
Crypto (dev only)
</ui-button>
</router-link>
</template>
<router-link v-slot="{ isActive }" :to="{ name: ROUTES_NAMES.settings }">
<ui-button
:variant="isActive ? 'default' : 'ghost'"
Expand Down

0 comments on commit dadf0a7

Please sign in to comment.