Skip to content

Commit

Permalink
fix: hide leaderboard link from offchain space menu (#424)
Browse files Browse the repository at this point in the history
* fix: hide leaderboard link from offchain space space menu

* chore: fix import order

* chore: simplify hidden prop

* Revert "chore: simplify hidden prop"

This reverts commit 4ed25fe.

---------

Co-authored-by: Wiktor Tkaczyński <[email protected]>
  • Loading branch information
wa0x6e and Sekhmet authored Jul 2, 2024
1 parent 5df0b11 commit ba65a70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/ui/src/components/App/Nav.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts" setup>
import { compareAddresses } from '@/helpers/utils';
import { offchainNetworks } from '@/networks';
import IHGlobeAlt from '~icons/heroicons-outline/globe-alt';
import IHNewspaper from '~icons/heroicons-outline/newspaper';
Expand Down Expand Up @@ -55,7 +56,8 @@ const navigationConfig = computed<Record<string, Record<string, NavigationItem>>
},
leaderboard: {
name: 'Leaderboard',
icon: IHUserGroup
icon: IHUserGroup,
hidden: (space.value && offchainNetworks.includes(space.value.network)) || false
},
...(space.value?.delegations && space.value.delegations.length > 0
? {
Expand Down

0 comments on commit ba65a70

Please sign in to comment.