feat: change the style of the step information

This commit is contained in:
shiweisong.ssw
2023-06-30 16:35:25 +08:00
parent c8044ddc96
commit a42505a8a4
2 changed files with 11 additions and 7 deletions

View File

@@ -21,6 +21,7 @@ import {
} from '@/lib/mui'
import moment from 'moment'
import { InboxOutlined } from '@ant-design/icons'
import CheckCircleOutlinedIcon from '@mui/icons-material/CheckCircleOutlined';
import type { UploadProps } from 'antd'
import { Upload, Pagination, Popover, message } from 'antd'
import { fetchBaseURL } from '@/app/datastores/constants'
@@ -37,8 +38,8 @@ const Item = styled(Sheet)(({ theme }) => ({
color: theme.vars.palette.text.secondary
}))
const stepsOfAddingDocument = [
'1.Choose a Datasource type',
'2.Setup the Datasource'
'Choose a Datasource type',
'Setup the Datasource'
]
const documentTypeList = [
{
@@ -352,7 +353,8 @@ const Documents = () => {
color: activeStep === index ? '#814DDE' : ''
}}
>
{item}
{index < activeStep ? <CheckCircleOutlinedIcon /> : `${index + 1}.`}
{`${item}`}
</Item>
))}
</Stack>

View File

@@ -3,6 +3,7 @@
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 type { UploadProps } from 'antd'
import { message, Upload, Popover } from 'antd'
import {
@@ -36,9 +37,9 @@ const Item = styled(Sheet)(({ theme }) => ({
}))
const stepsOfAddingSpace = [
'1.Knowledge Space Config',
'2.Choose a Datasource type',
'3.Setup the Datasource'
'Knowledge Space Config',
'Choose a Datasource type',
'Setup the Datasource'
]
const documentTypeList = [
{
@@ -225,7 +226,8 @@ const Index = () => {
color: activeStep === index ? '#814DDE' : ''
}}
>
{item}
{index < activeStep ? <CheckCircleOutlinedIcon /> : `${index + 1}.`}
{`${item}`}
</Item>
))}
</Stack>