Skip to content

Commit eb1f225

Browse files
committed
chore: style fixes on on-ramp
1 parent a72bcd6 commit eb1f225

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

views/on-ramp/QuoteFilter.vue

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:key="button"
77
class="button"
88
:class="{
9-
selected: selectedFilters.some((filter) => groupedFilters[key].includes(filter)),
9+
selected: selectedFilters.some((filter: any) => groupedFilters[key].includes(filter)),
1010
}"
1111
@click="applyFilter(key)"
1212
>
@@ -21,18 +21,12 @@ import type { PaymentMethod } from "zksync-easy-onramp";
2121
const buttons = {
2222
credit: "Credit",
2323
debit: "Debit",
24-
transfer: "Transfer",
25-
koywe: "Koywe",
26-
sepa: "Sepa",
27-
pix: "PIX",
24+
transfer: "Bank Transfer",
2825
};
2926
const groupedFilters = ref<{ [k in string]: PaymentMethod[] }>({
3027
credit: ["apple_pay_credit", "google_pay_credit", "credit_card"],
3128
debit: ["apple_pay_debit", "google_pay_debit", "debit_card"],
32-
transfer: ["wire", "ach"],
33-
koywe: ["koywe"],
34-
sepa: ["sepa"],
35-
pix: ["pix"],
29+
transfer: ["wire", "ach", "koywe", "sepa", "pix"],
3630
});
3731
const { quoteFilter: selectedFilters } = storeToRefs(useQuotesStore());
3832
const applyFilter = (filterKey: string) => {

views/on-ramp/QuotePreview.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
<img :src="quote.provider.iconUrl" class="h-8 w-8" />
2929
</div> -->
3030
<div class="payment-method inline-block text-right">
31-
<div class="mb-1 text-xs text-gray-600 dark:text-gray-400">{{ parsePaymentMethod(quote.method) }}</div>
32-
<div class="text-xs">via {{ provider.name }}</div>
31+
<div class="mb-1 text-xs leading-5 text-gray-600 dark:text-gray-400">
32+
{{ parsePaymentMethod(quote.method) }}
33+
</div>
34+
<div class="text-xs text-gray-700 dark:text-gray-300">via {{ provider.name }}</div>
3335
<!-- <div class="text-sm text-gray-600 dark:text-gray-300">{{ providerType }}</div> -->
3436
</div>
3537
</div>
@@ -140,7 +142,6 @@ function runQuote() {
140142
.provider-section {
141143
grid-area: provider;
142144
justify-self: end;
143-
align-self: center;
144145
}
145146
146147
.quote-grid {

views/on-ramp/QuotesList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div
33
id="list"
4-
class="-mt-5 max-h-[380px] overflow-y-auto rounded-b-2xl bg-neutral-50 px-6 pb-10 pt-7 dark:bg-neutral-950"
4+
class="-mt-5 max-h-[380px] overflow-y-auto rounded-b-2xl bg-neutral-50 px-6 pb-10 pt-7 dark:bg-transparent"
55
>
66
<div class="mb-2 flex flex-col">
77
<div class="mb-2 text-lg font-bold">Choose on-ramp</div>

0 commit comments

Comments
 (0)