style: button for empty
This commit is contained in:
@@ -717,15 +717,11 @@ const Models: React.FC<ModelsProps> = ({
|
||||
subTitle={intl.formatMessage({
|
||||
id: 'noresult.deployments.subTitle'
|
||||
})}
|
||||
>
|
||||
<Button
|
||||
type="primary"
|
||||
iconPosition="end"
|
||||
onClick={() => handleClickDropdown({ key: 'catalog' })}
|
||||
>
|
||||
{intl?.formatMessage?.({ id: 'models.table.button.deploy' })}
|
||||
</Button>
|
||||
</NoResult>
|
||||
onClick={() => handleClickDropdown({ key: 'catalog' })}
|
||||
buttonText={intl?.formatMessage?.({
|
||||
id: 'models.table.button.deploy'
|
||||
})}
|
||||
></NoResult>
|
||||
}
|
||||
pagination={{
|
||||
showSizeChanger: true,
|
||||
|
||||
@@ -4,7 +4,6 @@ import { PageAction } from '@/config';
|
||||
import NoResult from '@/pages/_components/no-result';
|
||||
import { useIntl, useNavigate } from '@umijs/max';
|
||||
import { useMemoizedFn } from 'ahooks';
|
||||
import { Button } from 'antd';
|
||||
import { useAtom } from 'jotai';
|
||||
import React, { useMemo } from 'react';
|
||||
|
||||
@@ -99,11 +98,9 @@ const useNoResourceResult = (props: {
|
||||
noFoundText={statusContent.noFoundText}
|
||||
title={title}
|
||||
subTitle={statusContent.subTitle}
|
||||
>
|
||||
<Button type="primary" iconPosition="end" onClick={statusContent.onClick}>
|
||||
{statusContent.buttonText}
|
||||
</Button>
|
||||
</NoResult>
|
||||
onClick={statusContent.onClick}
|
||||
buttonText={statusContent.buttonText}
|
||||
></NoResult>
|
||||
);
|
||||
return {
|
||||
noResourceResult
|
||||
|
||||
Reference in New Issue
Block a user