Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/components/header/mobile/MobileNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
$t('sidenavi.governance')
}}</a>
</nav>
<a class="surge-mobile" :href="surgeUrl" target="_blank">
<img :src="require('src/assets/img/surge_token.webp')" alt="Go to ACS" />
</a>

<div class="gradient-bg">
<astar-domains />
Expand Down Expand Up @@ -95,8 +92,8 @@

<script lang="ts">
import { providerEndpoints } from 'src/config/chainEndpoints';
import { useBreakpoints, useGovernance, useNetworkInfo } from 'src/hooks';
import { socialUrl, surgeUrl } from 'src/links';
import { useBreakpoints, useGovernance } from 'src/hooks';
import { socialUrl } from 'src/links';
import { Path as RoutePath } from 'src/router/routes';
import { useStore } from 'src/store';
import { computed, defineComponent, ref } from 'vue';
Expand Down Expand Up @@ -127,7 +124,6 @@ export default defineComponent({
path,
RoutePath,
network,
surgeUrl,
socialUrl,
isGovernanceEnabled,
governanceUrl,
Expand Down
11 changes: 1 addition & 10 deletions src/components/sidenav/SidebarDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,6 @@
</div>
</a>
</div>
<div>
<a class="surge" :href="surgeUrl" target="_blank">
<img :src="require('src/assets/img/surge_token.webp')" alt="Go to ACS" />
</a>
<q-tooltip>
<span class="text--tooltip">{{ $t('joinSurge') }}</span>
</q-tooltip>
</div>
<div class="menu__indicator" :class="getIndicatorClass(path)" />
</nav>

Expand All @@ -108,7 +100,7 @@
<script lang="ts">
import { providerEndpoints } from 'src/config/chainEndpoints';
import { useGovernance, useNetworkInfo, useSidebar } from 'src/hooks';
import { socialUrl, surgeUrl } from 'src/links';
import { socialUrl } from 'src/links';
import { Path as RoutePath } from 'src/router/routes';
import { useStore } from 'src/store';
import { computed, defineComponent, ref } from 'vue';
Expand Down Expand Up @@ -162,7 +154,6 @@ export default defineComponent({
path,
RoutePath,
socialUrl,
surgeUrl,
isGovernanceEnabled,
governanceUrl,
};
Expand Down
36 changes: 8 additions & 28 deletions src/components/sidenav/styles/sidebar-desktop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,32 +97,31 @@
}

.menu__assets {
margin-top: calc(-276px - 158px);
margin-top: calc(-276px);
&.governance_activated {
margin-top: calc(-276px - 158px - 46px);

margin-top: calc(-276px - 46px);
}
}

.menu__dashboard {
margin-top: calc(-230px - 158px);
margin-top: calc(-230px);
&.governance_activated {
margin-top: calc(-230px - 158px - 46px);
margin-top: calc(-230px - 46px);
}
}

.menu__staking {
margin-top: calc(-184px - 158px);
margin-top: calc(-184px);
&.governance_activated {
margin-top: calc(-184px - 158px - 46px);
margin-top: calc(-184px - 46px);
}
}

.menu__bridge {
margin-top: calc(-138px - 158px);
margin-top: calc(-138px);

&.governance_activated {
margin-top: calc(-138px - 158px - 46px);
margin-top: calc(-138px - 46px);
}
}

Expand All @@ -148,22 +147,3 @@
background: transparent;
}
}

.surge {
display: flex;
justify-content: center;
margin-bottom: 8px;
color: #fff;
position: relative;
transition: all 0.3s ease 0s;
img {
margin: 25px 0;
width: 100px;
height: 100px;
}
}

.surge:hover {
background: black;
}

1 change: 0 additions & 1 deletion src/i18n/en-US/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default {
help: 'Help',
share: 'Share',
multisig: 'Multisig',
joinSurge: 'Go to ACS',
sort: {
sortBy: 'Sort by',
amountHightToLow: 'Amount: High to Low',
Expand Down
2 changes: 0 additions & 2 deletions src/links/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ export const polkadotJsUrl = {
},
};

export const surgeUrl = 'https://acs.astar.network/';

export const ccipExplorerUrl = 'https://ccip.chain.link';

export const getSubscanExtrinsic = ({
Expand Down
Loading