mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 04:26:45 +00:00
📝 Docs: 商店插件可用性筛选 & 更新排序 (#3334)
This commit is contained in:
@ -2,7 +2,7 @@ import React from "react";
|
||||
|
||||
import { Form } from ".";
|
||||
|
||||
export default function AdapterForm(): JSX.Element {
|
||||
export default function AdapterForm(): React.ReactNode {
|
||||
const formItems = [
|
||||
{
|
||||
name: "基本信息",
|
||||
|
@ -2,7 +2,7 @@ import React from "react";
|
||||
|
||||
import { Form } from ".";
|
||||
|
||||
export default function BotForm(): JSX.Element {
|
||||
export default function BotForm(): React.ReactNode {
|
||||
const formItems = [
|
||||
{
|
||||
name: "基本信息",
|
||||
|
@ -18,7 +18,7 @@ export type Props = {
|
||||
export default function TagFormItem({
|
||||
allowTags,
|
||||
onTagUpdate,
|
||||
}: Props): JSX.Element {
|
||||
}: Props): React.ReactNode {
|
||||
const [tags, setTags] = useState<TagType[]>([]);
|
||||
const [label, setLabel] = useState<TagType["label"]>("");
|
||||
const [color, setColor] = useState<TagType["color"]>("#ea5252");
|
||||
|
@ -2,7 +2,7 @@ import React from "react";
|
||||
|
||||
import { Form } from ".";
|
||||
|
||||
export default function PluginForm(): JSX.Element {
|
||||
export default function PluginForm(): React.ReactNode {
|
||||
const formItems = [
|
||||
{
|
||||
name: "包信息",
|
||||
|
@ -32,7 +32,7 @@ export function Form({
|
||||
children,
|
||||
formItems,
|
||||
handleSubmit,
|
||||
}: Props): JSX.Element {
|
||||
}: Props): React.ReactNode {
|
||||
const [currentStep, setCurrentStep] = useState<number>(0);
|
||||
const [result, setResult] = useState<Record<string, string>>({});
|
||||
const [allowTags, setAllowTags] = useState<TagType[]>([]);
|
||||
@ -125,7 +125,7 @@ export function FormItem({
|
||||
allowTags: TagType[];
|
||||
result: Record<string, string>;
|
||||
setResult: (key: string, value: string) => void;
|
||||
}): JSX.Element {
|
||||
}): React.ReactNode {
|
||||
return (
|
||||
<>
|
||||
<label className="label">
|
||||
|
Reference in New Issue
Block a user