mirror of
https://github.com/nonebot/nonebot2.git
synced 2026-07-26 02:02:43 +00:00
🎨 replace prettier with oxfmt
This commit is contained in:
@@ -38,7 +38,7 @@ export default function AdapterForm(): React.ReactNode {
|
||||
template: "adapter_publish.yml",
|
||||
title: `Adapter: ${result.name}`,
|
||||
...result,
|
||||
})}`
|
||||
})}`,
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ export default function BotForm(): React.ReactNode {
|
||||
template: "bot_publish.yml",
|
||||
title: `Bot: ${result.name}`,
|
||||
...result,
|
||||
})}`
|
||||
})}`,
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -27,8 +27,8 @@ export default function TagFormItem({
|
||||
new Set(
|
||||
allowTags
|
||||
.filter((tag) => tag.label.toLocaleLowerCase().includes(label))
|
||||
.map((e) => e.label)
|
||||
)
|
||||
.map((e) => e.label),
|
||||
),
|
||||
).slice(0, 5);
|
||||
|
||||
const validateTag = () => {
|
||||
|
||||
@@ -24,7 +24,7 @@ export default function PluginForm(): React.ReactNode {
|
||||
template: "plugin_publish.yml",
|
||||
title: `Plugin: ${result.pypi}`,
|
||||
...result,
|
||||
})}`
|
||||
})}`,
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -49,8 +49,8 @@ export function Form({
|
||||
data
|
||||
.filter((item) => item.tags.length > 0)
|
||||
.map((ele) => ele.tags)
|
||||
.flat()
|
||||
)
|
||||
.flat(),
|
||||
),
|
||||
)
|
||||
.catch((e) => {
|
||||
console.error(e);
|
||||
@@ -63,7 +63,7 @@ export function Form({
|
||||
|
||||
const handleNextStep = () => {
|
||||
const currentStepNames = formItems[currentStep].items.map(
|
||||
(item) => item.name
|
||||
(item) => item.name,
|
||||
);
|
||||
if (currentStepNames.every((name) => result[name])) {
|
||||
setCurrentStep(currentStep + 1);
|
||||
|
||||
Reference in New Issue
Block a user