Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return page mobile data #180

Merged
merged 2 commits into from
Oct 9, 2023
Merged
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
19 changes: 19 additions & 0 deletions apps/web/pages/my-account/returns.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@

<div v-else class="relative col-span-3" :class="{ 'pointer-events-none opacity-50': loading }">
<SfLoaderCircular v-if="loading" class="absolute top-0 bottom-0 right-0 left-0 m-auto z-[999]" size="2xl" />
<ul class="md:hidden my-4 last-of-type:mb-0" v-for="order in data.entries" :key="order.order.id">
<li>
<p class="block typography-text-sm font-medium">{{ $t('account.ordersAndReturns.orderId') }}</p>
<span class="block typography-text-sm mb-2">{{ orderGetters.getId(order) }}</span>
</li>
<li>
<p class="block typography-text-sm font-medium">
{{ $t('account.ordersAndReturns.returnDate') }}
</p>
<span class="block typography-text-sm mb-2">{{ orderGetters.getDate(order) }}</span>
</li>
<li>
<p class="block typography-text-sm font-medium">
{{ $t('account.ordersAndReturns.orderDetails.paymentMethod') }}
</p>
<span class="block typography-text-sm mb-2">{{ orderGetters.getPaymentMethodName(order) }}</span>
</li>
<UiDivider class="col-span-3 -mx-4 !w-auto md:mx-0" />
</ul>
<table class="hidden md:block text-left typography-text-sm mx-4">
<caption class="hidden">
{{
Expand Down
Loading