* feat(plugin-workflow): add base client entry for workflow * fix(plugin-workflow): workflow table * feat: custom ui route (#227) * feat(plugin-workflow): add execution table * refactor(actions): expose utils of actions * fix(repo): move ".editorconfig" to root * feat(plugin-workflow): base workflow management able to add node * fix(plugin-workflow): fix empty workflow * feat(plugin-workfow): add flow canvas and style * fix(plugin-workflow): fix type for building * feat(plugin-workflow): fix add node in branch and add branch ui * feat(plugin-workflow): add calculation structure to condition config * fix(plugin-workflow): fix branch line style * feat(plugin-workflow): remove node with sub-branch * feat(plugin-workflow): add parallel node type * fix(plugin-workflow): fix dependency in client Co-authored-by: chenos <chenlinxh@gmail.com>
13 lines
343 B
TypeScript
13 lines
343 B
TypeScript
import React from 'react';
|
|
import { Link } from 'react-router-dom';
|
|
import { useActionContext, useRecord } from '..';
|
|
|
|
|
|
export const WorkflowLink = () => {
|
|
const { id } = useRecord();
|
|
const { setVisible } = useActionContext();
|
|
return (
|
|
<Link to={`/admin/workflows/${id}`} onClick={() => setVisible(false)}>流程配置</Link>
|
|
);
|
|
}
|