fix: 修复前端编译错误(移除未使用的导入和参数)
This commit is contained in:
@@ -8,7 +8,7 @@ interface DiscordConfigFormProps {
|
|||||||
/**
|
/**
|
||||||
* Discord 配置表单组件
|
* Discord 配置表单组件
|
||||||
*/
|
*/
|
||||||
const DiscordConfigForm: React.FC<DiscordConfigFormProps> = ({ form }) => {
|
const DiscordConfigForm: React.FC<DiscordConfigFormProps> = ({ form: _form }) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ interface SlackConfigFormProps {
|
|||||||
/**
|
/**
|
||||||
* Slack 配置表单组件
|
* Slack 配置表单组件
|
||||||
*/
|
*/
|
||||||
const SlackConfigForm: React.FC<SlackConfigFormProps> = ({ form }) => {
|
const SlackConfigForm: React.FC<SlackConfigFormProps> = ({ form: _form }) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Form, Input, Alert, Button, Space, message } from 'antd'
|
import { Form, Input, Alert, Button, message } from 'antd'
|
||||||
import { ReloadOutlined } from '@ant-design/icons'
|
import { ReloadOutlined } from '@ant-design/icons'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { apiService } from '../../services/api'
|
import { apiService } from '../../services/api'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { useNavigate } from 'react-router-dom'
|
import { useNavigate } from 'react-router-dom'
|
||||||
import { Card, Form, Button, Switch, message, Typography, Space, Radio, InputNumber, Modal, Table, Select, Divider } from 'antd'
|
import { Card, Form, Button, Switch, message, Typography, Space, Radio, InputNumber, Modal, Table, Select } from 'antd'
|
||||||
import { ArrowLeftOutlined, SaveOutlined, FileTextOutlined } from '@ant-design/icons'
|
import { ArrowLeftOutlined, SaveOutlined, FileTextOutlined } from '@ant-design/icons'
|
||||||
import { apiService } from '../services/api'
|
import { apiService } from '../services/api'
|
||||||
import { useAccountStore } from '../store/accountStore'
|
import { useAccountStore } from '../store/accountStore'
|
||||||
|
|||||||
Reference in New Issue
Block a user