ui phase 6
This commit is contained in:
@@ -8,12 +8,12 @@ import { useWalletInstallments } from '@/services/bnpl';
|
||||
import type { WalletInstallmentPlan } from '@/services/bnpl/types';
|
||||
|
||||
/**
|
||||
* D5 · پیگیری اقساط — the Wallet view of active installment plans. It reads `useWalletInstallments` and
|
||||
* renders **provider-reported** status: an outstanding-balance card (terracotta), the next-installment
|
||||
* date + a provider hand-off «پرداخت زودهنگام» (early-pay is a *provider* action, never a Balinyaar
|
||||
* transaction), the per-installment due list with status chips, and the ownership note (Balinyaar displays,
|
||||
* it does not manage, this schedule). Self-contained under the Wallet route so f12 nurse-earnings content
|
||||
* can land beside it later.
|
||||
* D5 · پیگیری اقساط — the Wallet «اقساط» section (active installment plans). It reads
|
||||
* `useWalletInstallments` and renders **provider-reported** status: an outstanding-balance card
|
||||
* (terracotta), the next-installment date + a provider hand-off «پرداخت زودهنگام» (early-pay is a
|
||||
* *provider* action, never a Balinyaar transaction), the per-installment due list with status chips, and
|
||||
* the ownership note (Balinyaar displays, it does not manage, this schedule). Section body only — the
|
||||
* page-level heading + tab strip live in `WalletScreen`.
|
||||
*/
|
||||
const WalletInstallments: FunctionComponent = () => {
|
||||
const t = useTranslations('bnpl');
|
||||
@@ -21,11 +21,7 @@ const WalletInstallments: FunctionComponent = () => {
|
||||
const { data: plans, isLoading, isError, refetch } = useWalletInstallments();
|
||||
|
||||
return (
|
||||
<Stack sx={{ gap: 2, maxWidth: 560, mx: 'auto', width: '100%' }}>
|
||||
<Typography variant="h6" component="h1">
|
||||
{t('wallet_title')}
|
||||
</Typography>
|
||||
|
||||
<Stack sx={{ gap: 2, width: '100%' }}>
|
||||
{isLoading ? (
|
||||
<Stack sx={{ gap: 1.5 }}>
|
||||
<Skeleton variant="rounded" height={128} />
|
||||
|
||||
Reference in New Issue
Block a user