工坊泥点确认接入共享弹窗

迁移角色资产工坊的泥点确认复用 PlatformMudPointConfirmDialog
补充 PlatformUiKit 弹窗收口文档记录工坊接入
更新团队决策日志沉淀泥点确认补充说明复用约定
This commit is contained in:
2026-06-10 22:06:13 +08:00
parent dbfdb9b99b
commit 40ff21f493
3 changed files with 7 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ import {
import { buildProjectPixelStyleReferenceBoard } from '../asset-studio/projectPixelStyleReference';
import { useAuthUi } from '../auth/AuthUiContext';
import { CharacterAnimator } from '../CharacterAnimator';
import { UnifiedConfirmDialog } from '../common/UnifiedConfirmDialog';
import { PlatformMudPointConfirmDialog } from '../common/PlatformMudPointConfirmDialog';
import {
CORE_ACTIONS,
type CustomWorldAiActionConfig,
@@ -1113,24 +1113,19 @@ export function RpgCreationRoleAssetStudioModal({
void handleSaveToRole();
}}
/>
<UnifiedConfirmDialog
<PlatformMudPointConfirmDialog
open={Boolean(pendingPointSpendConfirmation)}
title={pendingPointSpendConfirmation?.kindLabel ?? '确认消耗泥点'}
description={
pendingPointSpendConfirmation
? `消耗 ${pendingPointSpendConfirmation.points} 泥点`
: undefined
}
points={pendingPointSpendConfirmation?.points ?? 0}
title={pendingPointSpendConfirmation?.kindLabel}
onClose={() => setPendingPointSpendConfirmation(null)}
onConfirm={confirmPointSpend}
showCancel
portal={false}
size="sm"
overlayClassName="!items-center"
panelClassName="platform-remap-surface rounded-[1.5rem]"
>
{pendingPointSpendConfirmation?.description}
</UnifiedConfirmDialog>
</PlatformMudPointConfirmDialog>
</div>
</PortalModalShell>
);