display score user
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
'use client';
|
||||
import { ef } from '@/lib/helpers/utfNumbers'
|
||||
import { Cup, Star1 } from 'iconsax-react'
|
||||
import React from 'react'
|
||||
import { useGetUserWallet } from '../../hooks/useTransactionData';
|
||||
|
||||
function TransactionsIndex() {
|
||||
|
||||
const { data: userWallet } = useGetUserWallet();
|
||||
|
||||
return (
|
||||
<section className='pt-6'>
|
||||
<h1 className='font-medium'>کدهای تخفیف</h1>
|
||||
@@ -28,7 +33,7 @@ function TransactionsIndex() {
|
||||
<p className='text-xs mt-[7px]'>با امتیازی که داری سفارش بده!</p>
|
||||
</div>
|
||||
|
||||
<p className='text-xs font-medium'>مجموع امتیازات شما: {ef('1500')}</p>
|
||||
<p className='text-xs font-medium'>مجموع امتیازات شما: {ef(userWallet?.data?.points?.toString() ?? '0')}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -52,7 +57,7 @@ function TransactionsIndex() {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user