move and rename PlatformMudPointWalletEntry to index.tsx inside same name dir
This commit is contained in:
+2
-2
@@ -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,
|
||||
+5
-4
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user