style: no available models tips

This commit is contained in:
jialin
2024-09-29 20:34:11 +08:00
parent 458f467985
commit 3978ec683d
6 changed files with 75 additions and 76 deletions
@@ -1,5 +1,5 @@
import { useIntl, useNavigate } from '@umijs/max';
import { Button, Empty, Typography } from 'antd';
import { Empty, Typography } from 'antd';
import React from 'react';
const EmptyModels: React.FC<{
@@ -13,7 +13,7 @@ const EmptyModels: React.FC<{
};
return (
<div
className="flex-center justify-center"
className="flex-center justify-center"
style={{
...style
}}
@@ -25,16 +25,9 @@ const EmptyModels: React.FC<{
<Typography.Text type="secondary">
{intl.formatMessage({ id: 'playground.model.noavailable' })}
</Typography.Text>
<Typography.Text type="secondary">
{intl.formatMessage({ id: 'playground.model.noavailable.tips' })}
</Typography.Text>
</div>
}
>
<Button type="primary" onClick={handleDeployModel}>
{intl.formatMessage({ id: 'models.button.deploy' })}
</Button>
</Empty>
></Empty>
</div>
);
};