feat(fe): balance conversion button and modal (#2491)

* feat: add balance conversion api declaration

* feat(fe): add conversion modal

* fix: show button when standplan and the user has manage permission

* feat: hide balance when <= 0
This commit is contained in:
Finley Ge
2024-08-23 17:14:07 +08:00
committed by GitHub
parent 6288dc9492
commit eaaf6f5978
7 changed files with 165 additions and 42 deletions

View File

@@ -14,6 +14,7 @@ import Avatar from '../Avatar';
export interface MyModalProps extends ModalContentProps {
iconSrc?: string;
iconColor?: string;
title?: any;
isCentered?: boolean;
isLoading?: boolean;
@@ -33,6 +34,7 @@ const MyModal = ({
w = 'auto',
maxW = ['90vw', '600px'],
closeOnOverlayClick = true,
iconColor,
...props
}: MyModalProps) => {
const { isPc } = useSystem();
@@ -71,6 +73,7 @@ const MyModal = ({
{iconSrc && (
<>
<Avatar
color={iconColor}
objectFit={'contain'}
alt=""
src={iconSrc}