From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/datasets/rename-modal/index.tsx | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/app/components/datasets/rename-modal/index.tsx b/app/components/datasets/rename-modal/index.tsx index dd53baf..e93862f 100644 --- a/app/components/datasets/rename-modal/index.tsx +++ b/app/components/datasets/rename-modal/index.tsx @@ -13,7 +13,6 @@ import { ToastContext } from '@/app/components/base/toast' import type { DataSet } from '@/models/datasets' import { updateDatasetSetting } from '@/service/datasets' -import { noop } from 'lodash-es' type RenameDatasetModalProps = { show: boolean @@ -55,7 +54,7 @@ onSuccess() onClose() } - catch { + catch (e) { notify({ type: 'error', message: t('common.actionMsg.modifiedUnsuccessfully') }) } finally { @@ -65,17 +64,17 @@ return ( <Modal - className='w-[520px] max-w-[520px] rounded-xl px-8 py-6' + className='px-8 py-6 max-w-[520px] w-[520px] rounded-xl' isShow={show} - onClose={noop} + onClose={() => { }} > - <div className='relative pb-2 text-xl font-medium leading-[30px] text-text-primary'>{t('datasetSettings.title')}</div> - <div className='absolute right-4 top-4 cursor-pointer p-2' onClick={onClose}> - <RiCloseLine className='h-4 w-4 text-text-tertiary' /> + <div className='relative pb-2 text-xl font-medium leading-[30px] text-gray-900'>{t('datasetSettings.title')}</div> + <div className='absolute right-4 top-4 p-2 cursor-pointer' onClick={onClose}> + <RiCloseLine className='w-4 h-4 text-gray-500' /> </div> <div> - <div className={cn('flex flex-wrap items-center justify-between py-4')}> - <div className='shrink-0 py-2 text-sm font-medium leading-[20px] text-text-primary'> + <div className={cn('flex justify-between py-4 flex-wrap items-center')}> + <div className='shrink-0 py-2 text-sm font-medium leading-[20px] text-gray-900'> {t('datasetSettings.form.name')} </div> <Input @@ -85,8 +84,8 @@ placeholder={t('datasetSettings.form.namePlaceholder') || ''} /> </div> - <div className={cn('flex flex-wrap items-center justify-between py-4')}> - <div className='shrink-0 py-2 text-sm font-medium leading-[20px] text-text-primary'> + <div className={cn('flex justify-between py-4 flex-wrap items-center')}> + <div className='shrink-0 py-2 text-sm font-medium leading-[20px] text-gray-900'> {t('datasetSettings.form.desc')} </div> <div className='w-full'> @@ -99,7 +98,7 @@ </div> </div> </div> - <div className='flex justify-end pt-6'> + <div className='pt-6 flex justify-end'> <Button className='mr-2' onClick={onClose}>{t('common.operation.cancel')}</Button> <Button disabled={loading} variant="primary" onClick={onConfirm}>{t('common.operation.save')}</Button> </div> -- Gitblit v1.8.0