Commit 93c38f00 authored by Joel's avatar Joel

fix: title style

parent 93b84d8a
...@@ -11,6 +11,7 @@ import { upload } from '@/service/base' ...@@ -11,6 +11,7 @@ import { upload } from '@/service/base'
type IFileUploaderProps = { type IFileUploaderProps = {
fileList: any[] fileList: any[]
titleClassName?: string
prepareFileList: (files: any[]) => void prepareFileList: (files: any[]) => void
onFileUpdate: (fileItem: any, progress: number, list: any[]) => void onFileUpdate: (fileItem: any, progress: number, list: any[]) => void
onFileListUpdate?: (files: any) => void onFileListUpdate?: (files: any) => void
...@@ -34,6 +35,7 @@ const BATCH_COUNT = 5 ...@@ -34,6 +35,7 @@ const BATCH_COUNT = 5
const FileUploader = ({ const FileUploader = ({
fileList, fileList,
titleClassName,
prepareFileList, prepareFileList,
onFileUpdate, onFileUpdate,
onFileListUpdate, onFileListUpdate,
...@@ -216,7 +218,7 @@ const FileUploader = ({ ...@@ -216,7 +218,7 @@ const FileUploader = ({
accept={ACCEPTS.join(',')} accept={ACCEPTS.join(',')}
onChange={fileChangeHandle} onChange={fileChangeHandle}
/> />
<div className={s.title}>{t('datasetCreation.stepOne.uploader.title')}</div> <div className={cn(s.title, titleClassName)}>{t('datasetCreation.stepOne.uploader.title')}</div>
<div ref={dropRef} className={cn(s.uploader, dragging && s.dragging)}> <div ref={dropRef} className={cn(s.uploader, dragging && s.dragging)}>
<div className='flex justify-center items-center h-6 mb-2'> <div className='flex justify-center items-center h-6 mb-2'>
<span className={s.uploadIcon}/> <span className={s.uploadIcon}/>
......
...@@ -155,6 +155,7 @@ const StepOne = ({ ...@@ -155,6 +155,7 @@ const StepOne = ({
<> <>
<FileUploader <FileUploader
fileList={files} fileList={files}
titleClassName={!shouldShowDataSourceTypeList ? 'mt-[30px] !mb-[44px] !text-lg !font-semibold !text-gray-900' : undefined}
prepareFileList={updateFileList} prepareFileList={updateFileList}
onFileListUpdate={updateFileList} onFileListUpdate={updateFileList}
onFileUpdate={updateFile} onFileUpdate={updateFile}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment