diff --git a/packages/web_ui/package.json b/packages/web_ui/package.json index 3f010034..91b86911 100644 --- a/packages/web_ui/package.json +++ b/packages/web_ui/package.json @@ -45,7 +45,6 @@ "os-browserify": "^0.3.0", "path-browserify": "^1.0.1", "process": "^0.11.10", - "rc-field-form": "^1.44.0", "react": "catalog:", "react-dom": "catalog:", "react-markdown": "catalog:", diff --git a/packages/web_ui/src/components/ModPackViewPage.tsx b/packages/web_ui/src/components/ModPackViewPage.tsx index 3aba7619..575b3361 100644 --- a/packages/web_ui/src/components/ModPackViewPage.tsx +++ b/packages/web_ui/src/components/ModPackViewPage.tsx @@ -1,11 +1,10 @@ import React, { Fragment, memo, useCallback, useEffect, useContext, useRef, useState } from "react"; import { useNavigate, useParams } from "react-router-dom"; -import { FieldData } from "rc-field-form/lib/interface"; import { Button, Card, ColorPicker, Checkbox, Col, ConfigProvider, Descriptions, Form, Input, Pagination, Popconfirm, Row, Table, Tag, Typography, Select, Skeleton, Space, Spin, Switch, Modal, Tooltip, - TablePaginationConfig, Alert, notification, + TablePaginationConfig, Alert, notification, FormProps, } from "antd"; import { @@ -35,6 +34,8 @@ const { logger } = lib; const { Text } = Typography; const strcmp = new Intl.Collator(undefined, { numeric: true, sensitivity: "base" }).compare; +type FieldData = NonNullable[number]; + type ModChange = { type: "name" | "description"