feat: Modify the modal style of creating an agent so that there are more templates in the field of view #2122 (#2123)

### What problem does this PR solve?

feat: Modify the modal style of creating an agent so that there are more
templates in the field of view #2122

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-27 18:49:08 +08:00
committed by GitHub
parent fc172b4a79
commit c8097e97cb
10 changed files with 224 additions and 113 deletions

View File

@ -1,6 +1,6 @@
import { PlusOutlined } from '@ant-design/icons';
import { Button, Empty, Flex, Spin } from 'antd';
import CreateFlowModal from './create-flow-modal';
import AgentTemplateModal from './agent-template-modal';
import FlowCard from './flow-card';
import { useFetchDataOnMount, useSaveFlow } from './hooks';
@ -42,13 +42,12 @@ const FlowList = () => {
</Flex>
</Spin>
{flowSettingVisible && (
<CreateFlowModal
<AgentTemplateModal
visible={flowSettingVisible}
onOk={onFlowOk}
loading={flowSettingLoading}
hideModal={hideFlowSettingModal}
initialName=""
></CreateFlowModal>
></AgentTemplateModal>
)}
</Flex>
);