move and rename PlatformMudPointWalletEntry to index.tsx inside same name dir

This commit is contained in:
2026-07-16 20:05:53 +08:00
parent b29220a684
commit 227a8468a9
2 changed files with 7 additions and 6 deletions
@@ -10,8 +10,8 @@ import {
import userEvent from '@testing-library/user-event';
import { expect, test, vi } from 'vitest';
import { formatMudPointCount } from '../utils/format';
import { PlatformMudPointWalletEntry } from './PlatformMudPointWalletEntry.tsx';
import { formatMudPointCount } from '../../utils/format';
import { PlatformMudPointWalletEntry } from './index.tsx';
const breakdown = {
totalPoints: 207,
@@ -8,9 +8,9 @@ import {
useState,
} from 'react';
import type { ProfileMudPointBalance } from '../contracts/runtime';
import MUD_POINT_ICON_SRC from '../icons/topbar-wallet.png';
import { formatMudPointCount } from '../utils/format';
import type { ProfileMudPointBalance } from '../../contracts/runtime';
import MUD_POINT_ICON_SRC from '../../icons/topbar-wallet.png';
import { formatMudPointCount } from '../../utils/format';
export type PlatformMudPointWalletEntryProps = {
balance: number | null;
@@ -56,6 +56,7 @@ export function PlatformMudPointWalletEntry({
balance,
breakdown,
isLoading = false,
error = null,
variant = 'desktop',
className,
onRequestDetails,
@@ -245,7 +246,7 @@ export function PlatformMudPointWalletEntry({
</>
) : (
<div className="border-t border-[var(--platform-subpanel-border)] px-4 py-6 text-center text-xs font-semibold text-[var(--platform-text-soft)]">
{isLoading ? '余额读取中' : '余额明细暂不可用'}
{isLoading ? '余额读取中' : error || '余额明细暂不可用'}
</div>
)}