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">
<header>
<Breadcrumb>
<Breadcrumb.Item>
<Link to={`/admin/settings/workflow/workflows`}>{lang('Workflow')}</Link>
</Breadcrumb.Item>
<Breadcrumb.Item>
<Link to={`/admin/settings/workflow/workflows/${workflow.id}`}>{workflow.title}</Link>
</Breadcrumb.Item>
<Breadcrumb.Item>
<strong>{`#${execution.id}`}</strong>
</Breadcrumb.Item>
</Breadcrumb>
<Breadcrumb
items={[
{ title: <Link to={`/admin/settings/workflow/workflows`}>{lang('Workflow')}</Link> },
{ title: <Link to={`/admin/settings/workflow/workflows/${workflow.id}`}>{workflow.title}</Link> },
{ title: <strong>{`#${execution.id}`}</strong> },
]}
/>
</header>
<aside>
<Tag color={statusOption.color}>{compile(statusOption.label)}</Tag>

View File

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