style(ui): eslint-sort-imports

This commit is contained in:
Fu Diwei
2025-01-02 12:50:38 +08:00
parent 1588179bc9
commit b6dd2248c8
51 changed files with 84 additions and 137 deletions

View File

@@ -9,23 +9,23 @@ import {
Divider,
Empty,
Menu,
message,
type MenuProps,
Modal,
notification,
Radio,
Space,
Switch,
Table,
theme,
type TableProps,
Tooltip,
Typography,
type MenuProps,
type TableProps,
message,
notification,
theme,
} from "antd";
import dayjs from "dayjs";
import { ClientResponseError } from "pocketbase";
import { isAllNodesValidated, type WorkflowModel } from "@/domain/workflow";
import { type WorkflowModel, isAllNodesValidated } from "@/domain/workflow";
import { list as listWorkflow, remove as removeWorkflow, save as saveWorkflow } from "@/repository/workflow";
import { getErrMsg } from "@/utils/error";
@@ -239,6 +239,10 @@ const WorkflowList = () => {
}
);
const handleCreateClick = () => {
navigate("/workflows/new");
};
const handleEnabledChange = async (workflow: WorkflowModel) => {
try {
if (!workflow.enabled && !isAllNodesValidated(workflow.content!)) {
@@ -284,10 +288,6 @@ const WorkflowList = () => {
});
};
const handleCreateClick = () => {
alert("TODO");
};
return (
<div className="p-4">
{MessageContextHolder}