mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00
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:
@@ -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}
|
||||
|
Reference in New Issue
Block a user