feat(wallet): show withdraw history on mobile and desktop

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-01 19:30:06 +03:30
co-authored by Cursor
parent 24a98b5448
commit 5d3d7c4ed7
5 changed files with 64 additions and 3 deletions
@@ -159,6 +159,25 @@
@add-account="showAddCard = true"
@card-deleted="getCards"
/>
<div class="dwallet-side__header dwallet-side__header--split">
<h3 class="dwallet-side__title">تاریخچه برداشت</h3>
</div>
<div
:ref="(node) => { desktopDepositScrollEl = (node as HTMLElement | null) }"
class="dwallet-side__scroll"
>
<list-anim v-if="!loading" :numberItemsAnim="4">
<Item v-for="item in withdrawItems" :key="item.id" :item="item" />
<TransactionSkeleton v-if="loadingMore" class="mt-1 mb-4" />
</list-anim>
<div v-else class="dwallet-side__skeletons">
<TransactionSkeleton v-for="i in 6" :key="i" class="mt-1" />
</div>
<p v-if="!loading && !withdrawItems.length" class="dwallet-side__empty">
تراکنش برداشتی ثبت نشده است.
</p>
</div>
</template>
</section>
</div>
@@ -187,6 +206,7 @@ const {
disableButton,
cardItems,
depositItems,
withdrawItems,
loading,
loadingMore,
desktopDepositScrollEl,
@@ -201,6 +201,12 @@
justify-content: space-between;
gap: 12px;
padding: 20px 24px 0;
&--split {
margin-top: 4px;
padding-top: 16px;
border-top: 1px solid #f1f5f9;
}
}
&__title {