Skip to content

Commit

Permalink
fix: remove one of the providers (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 authored Apr 12, 2024
1 parent 10493a6 commit be0d065
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 58 deletions.
4 changes: 1 addition & 3 deletions src/components/TopUpProviders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@
data-cy="deposit_provider_zksync"
/>

<top-up-providers-zig-zag v-if="providers.includes('zigzag')" class="providerOption" @providerError="setError" />

<block-modals-deposit-error :error-text="errorText" @close="errorText = undefined" />
</div>
</template>

<script lang="ts">
import Vue, { PropType } from "vue";
type Providers = "ramp" | "moonpay" | "zksync" | "layerSwap" | "okex" | "bybit" | "utorg" | "zigzag";
type Providers = "ramp" | "moonpay" | "zksync" | "layerSwap" | "okex" | "bybit" | "utorg";
export default Vue.extend({
name: "TopUpProviders",
Expand Down
32 changes: 0 additions & 32 deletions src/components/TopUpProviders/ZigZag.vue

This file was deleted.

23 changes: 1 addition & 22 deletions src/pages/account/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,14 @@
</i-button>
<i-button
block
class="_margin-y-0 _padding-right-1 _margin-right-1"
class="_margin-y-0 _padding-right-1"
data-cy="account_send_zksync_button"
size="md"
to="/account/transfer"
variant="secondary"
>
<v-icon class="planeIcon" name="ri-send-plane-fill" />&nbsp;Transfer
</i-button>
<i-button
:disabled="!zigZagLink"
:href="zigZagLink"
block
class="_margin-y-0 _padding-right-1"
data-cy="account_swap_zksync_button"
size="md"
tag="a"
target="_blank"
variant="secondary"
>
<v-icon class="planeIcon" name="ri-arrow-left-right-line" />&nbsp;Swap
</i-button>
</div>

<i-input ref="searchInput" v-model="search" autofocus maxlength="6" placeholder="Filter tokens">
Expand Down Expand Up @@ -201,14 +188,6 @@ export default Vue.extend({
hasDisplayedBalances(): boolean {
return Object.keys(this.displayedList).length !== 0 || Object.keys(this.activeDeposits).length !== 0;
},
zigZagLink(): string | null {
switch (this.$store.getters["zk-provider/network"]) {
case "mainnet":
return "https://trade.zigzag.exchange/";
default:
return null;
}
},
isSearching(): boolean {
return this.search.trim().length > 0;
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/account/top-up.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<div class="secondaryText small _margin-bottom-05">
You can bridge your assets from other networks & exchanges using one of our supported bridges
</div>
<TopUpProviders :providers="['zksync', 'layerSwap', 'zigzag']" />
<TopUpProviders :providers="['zksync', 'layerSwap']" />
</section>
</div>
</div>
Expand Down

0 comments on commit be0d065

Please sign in to comment.