Skip to content

Commit

Permalink
chore: replace demo banner with testnet tag (#4433)
Browse files Browse the repository at this point in the history
* chore: replace demo banner with testnet tag

* fix: condition wrong position
  • Loading branch information
bonustrack authored Dec 6, 2023
1 parent c2c948e commit 8caecf4
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/components/TheNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const { pendingTransactions, pendingTransactionsWithHash } = useTxStatus();
const { env, showSidebar, domain } = useApp();
const { web3Account } = useWeb3();
const showDemoBanner = ref(true);
const showPendingTransactionsModal = ref(false);
watch(
Expand All @@ -15,19 +14,6 @@ watch(
</script>

<template>
<div
v-if="env === 'demo' && showDemoBanner"
class="relative bg-skin-primary p-3 text-center"
style="color: white; font-size: 20px"
>
{{ $t('demoSite') }}
<BaseButtonIcon
class="absolute right-3 top-[10px]"
@click="showDemoBanner = false"
>
<i-ho-x />
</BaseButtonIcon>
</div>
<div>
<div class="px-3 sm:px-4">
<div class="flex items-center py-[12px]">
Expand All @@ -45,6 +31,7 @@ watch(
>
snapshot
</router-link>
<span v-if="env === 'demo'" class="ml-1">testnet</span>
</div>
<div :key="web3Account" class="flex space-x-2">
<NavbarAccount />
Expand Down

1 comment on commit 8caecf4

@vercel
Copy link

@vercel vercel bot commented on 8caecf4 Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.