Skip to content

Commit

Permalink
fix: withdraw warning link
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed May 28, 2023
1 parent e940161 commit 27bdd51
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
10 changes: 8 additions & 2 deletions components/modal/transaction/WithdrawExchangeWarning.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
</p>
<p class="leading-normal">
If you are unsure, the safest way would be to firstly
<NuxtLink :to="buttonLocation" class="link">withdraw to {{ selectedEthereumNetwork.name }} (L1)</NuxtLink> and
then send funds to the exchange.
<NuxtLink :to="withdrawToSelfLinkLocation" class="link"
>withdraw to {{ selectedEthereumNetwork.name }} (L1)</NuxtLink
>
and then send funds to the exchange.
</p>

<div class="mt-3 flex items-start">
Expand Down Expand Up @@ -62,6 +64,10 @@ defineProps({
type: Object as PropType<RouteLocationRaw>,
required: true,
},
withdrawToSelfLinkLocation: {
type: Object as PropType<RouteLocationRaw>,
required: true,
},
});
const { selectedEthereumNetwork } = storeToRefs(useNetworkStore());
Expand Down
3 changes: 3 additions & 0 deletions pages/transaction/zksync/era/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ModalTransactionWithdrawExchangeWarning
:opened="openedModal === 'withdraw-to-exchange'"
:button-location="{ name: 'transaction-zksync-era-withdraw' }"
:withdraw-to-self-link-location="{ name: 'transaction-zksync-era-withdraw', query: { address: account.address } }"
@close="closeModal"
/>

Expand Down Expand Up @@ -81,8 +82,10 @@ import { ArrowUpRightIcon } from "@heroicons/vue/24/outline";
import { storeToRefs } from "pinia";
import { useDestinationsStore } from "@/store/destinations";
import { useOnboardStore } from "@/store/onboard";
const { destinations } = storeToRefs(useDestinationsStore());
const { account } = storeToRefs(useOnboardStore());
const openedModal = ref<"withdraw-to-exchange" | undefined>();
const closeModal = () => {
Expand Down
3 changes: 3 additions & 0 deletions pages/transaction/zksync/lite/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ModalTransactionWithdrawExchangeWarning
:opened="openedModal === 'withdraw-to-exchange'"
:button-location="{ name: 'transaction-zksync-lite-withdraw' }"
:withdraw-to-self-link-location="{ name: 'transaction-zksync-era-withdraw', query: { address: account.address } }"
@close="closeModal"
/>

Expand Down Expand Up @@ -71,8 +72,10 @@ import { ArrowUpRightIcon } from "@heroicons/vue/24/outline";
import { storeToRefs } from "pinia";
import { useDestinationsStore } from "@/store/destinations";
import { useOnboardStore } from "@/store/onboard";
const { destinations } = storeToRefs(useDestinationsStore());
const { account } = storeToRefs(useOnboardStore());
const openedModal = ref<"withdraw-to-exchange" | undefined>();
const closeModal = () => {
Expand Down

0 comments on commit 27bdd51

Please sign in to comment.