fix: some build errors and warnings caused by useless code
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import React from 'react';
|
||||
import LayoutWrapper from './components/LayoutWrapper';
|
||||
|
||||
function App() {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// 基础请求工具函数
|
||||
|
||||
import { API_CONFIG } from './config';
|
||||
import type { HTTPValidationError } from './types';
|
||||
|
||||
// 请求选项接口
|
||||
export interface RequestOptions {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useState, useRef } from 'react';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Row, Col, Input, Button } from 'antd';
|
||||
import { PlusOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||
import './KeyValueList.css';
|
||||
|
||||
@@ -501,7 +501,6 @@ const ResourceList: React.FC = () => {
|
||||
const isMobile = !screens.md;
|
||||
const [loading, setLoading] = React.useState(false);
|
||||
const [data, setData] = React.useState<Resource[]>([]);
|
||||
const [pageSize, setPageSize] = React.useState<number>(10);
|
||||
const [pagination, setPagination] = React.useState<{ current: number; pageSize: number }>({ current: 1, pageSize: 10 });
|
||||
|
||||
const handleTableChange: TableProps<Resource>['onChange'] = (pg) => {
|
||||
|
||||
Reference in New Issue
Block a user