feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { Upload as ActionUpload } from '@/components/common/icons/ActionIcons';
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import { Button, Image, Typography } from '@/components/ui';
|
||||
import { Upload } from 'lucide-react';
|
||||
@@ -117,7 +118,7 @@ export default function QrCodeUpload({
|
||||
hidden
|
||||
/>
|
||||
<Button
|
||||
icon={<Upload size={14} />}
|
||||
icon={<ActionUpload size={14} />}
|
||||
loading={uploading}
|
||||
disabled={busy || uploading}
|
||||
onClick={() => inputRef.current?.click()}
|
||||
|
||||
@@ -173,9 +173,7 @@ export function validateSettings(values) {
|
||||
[...new Set(TABS.flatMap((tab) => tab.fields))]
|
||||
.map((key) => [
|
||||
key,
|
||||
key === 'insights' &&
|
||||
!values.insights?.categories?.length &&
|
||||
!values.insights?.articles?.length
|
||||
key === 'insights' && !values.insights?.articles?.length
|
||||
? '请完善动态与洞察的配置'
|
||||
: validateField(key, values[key]),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user