chore(plugin-workflow): fix breadcrumb warning (#2256)

This commit is contained in:
Junyi 2023-07-15 12:23:02 +07:00 committed by GitHub
parent f87cf982f1
commit 6e637dbb42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 19 deletions

View File

@ -144,17 +144,13 @@ export function ExecutionCanvas() {
> >
<div className="workflow-toolbar"> <div className="workflow-toolbar">
<header> <header>
<Breadcrumb> <Breadcrumb
<Breadcrumb.Item> items={[
<Link to={`/admin/settings/workflow/workflows`}>{lang('Workflow')}</Link> { title: <Link to={`/admin/settings/workflow/workflows`}>{lang('Workflow')}</Link> },
</Breadcrumb.Item> { title: <Link to={`/admin/settings/workflow/workflows/${workflow.id}`}>{workflow.title}</Link> },
<Breadcrumb.Item> { title: <strong>{`#${execution.id}`}</strong> },
<Link to={`/admin/settings/workflow/workflows/${workflow.id}`}>{workflow.title}</Link> ]}
</Breadcrumb.Item> />
<Breadcrumb.Item>
<strong>{`#${execution.id}`}</strong>
</Breadcrumb.Item>
</Breadcrumb>
</header> </header>
<aside> <aside>
<Tag color={statusOption.color}>{compile(statusOption.label)}</Tag> <Tag color={statusOption.color}>{compile(statusOption.label)}</Tag>

View File

@ -141,14 +141,12 @@ export function WorkflowCanvas() {
> >
<div className="workflow-toolbar"> <div className="workflow-toolbar">
<header> <header>
<Breadcrumb> <Breadcrumb
<Breadcrumb.Item> items={[
<Link to={`/admin/settings/workflow/workflows`}>{lang('Workflow')}</Link> { title: <Link to={`/admin/settings/workflow/workflows`}>{lang('Workflow')}</Link> },
</Breadcrumb.Item> { title: <strong>{workflow.title}</strong> },
<Breadcrumb.Item> ]}
<strong>{workflow.title}</strong> />
</Breadcrumb.Item>
</Breadcrumb>
</header> </header>
<aside> <aside>
<div className="workflow-versions"> <div className="workflow-versions">