From 2a633a5dbd83084f2815e8dbf8150cd6789e2ae8 Mon Sep 17 00:00:00 2001 From: "shiweisong.ssw" Date: Mon, 3 Jul 2023 21:03:35 +0800 Subject: [PATCH] feat: change the style of the card --- datacenter/app/datastores/page.tsx | 86 ++++++++++++++++++------------ 1 file changed, 53 insertions(+), 33 deletions(-) diff --git a/datacenter/app/datastores/page.tsx b/datacenter/app/datastores/page.tsx index bba7f9c23..d6f2e5469 100644 --- a/datacenter/app/datastores/page.tsx +++ b/datacenter/app/datastores/page.tsx @@ -4,6 +4,8 @@ import { useRouter } from 'next/navigation' import React, { useState, useEffect } from 'react' import { InboxOutlined } from '@ant-design/icons' import CheckCircleOutlinedIcon from '@mui/icons-material/CheckCircleOutlined' +import AddBoxOutlinedIcon from '@mui/icons-material/AddBoxOutlined'; +import ContentPasteSearchOutlinedIcon from '@mui/icons-material/ContentPasteSearchOutlined'; import type { UploadProps } from 'antd' import { message, Upload, Popover } from 'antd' import { @@ -108,29 +110,13 @@ const Index = () => { fetchData() }, []) return ( - <> - - - Knowledge Spaces - - - + { } }} > + setIsAddKnowledgeSpaceModalShow(true)} + >Space {knowledgeSpaceList.map((item: any, index: number) => ( { fontSize: '18px', marginBottom: '10px', fontWeight: 'bold', - }}>{item.name} + color: 'black' + }}>{item.name} { flexShrink: 0 }} > - {item.vector_type} - Vector + {item.vector_type} + Vector { flexShrink: 0 }} > - {item.owner} - Owner + {item.owner} + Owner { flexShrink: 0 }} > - {item.owner} - Docs + {item.docs || 0} + Docs @@ -560,7 +580,7 @@ const Index = () => { )} - + ) }