fixes
This commit is contained in:
@@ -119,12 +119,18 @@ export default function WorkflowPipeline({
|
||||
{step.title}
|
||||
</p>
|
||||
<p className="text-xs text-gray-500 dark:text-gray-400 mt-1">
|
||||
{step.count} {step.title.toLowerCase().includes('keyword') ? 'keywords' :
|
||||
step.title.toLowerCase().includes('cluster') ? 'clusters' :
|
||||
step.title.toLowerCase().includes('idea') ? 'ideas' :
|
||||
step.title.toLowerCase().includes('task') ? 'tasks' : 'items'}
|
||||
{step.count > 0 ? (
|
||||
<>
|
||||
{step.count} {step.title.toLowerCase().includes('keyword') ? 'keywords' :
|
||||
step.title.toLowerCase().includes('cluster') ? 'clusters' :
|
||||
step.title.toLowerCase().includes('idea') ? 'ideas' :
|
||||
step.title.toLowerCase().includes('task') ? 'tasks' : 'items'}
|
||||
</>
|
||||
) : (
|
||||
<span className="text-gray-400 dark:text-gray-500">No items</span>
|
||||
)}
|
||||
</p>
|
||||
{step.status === "pending" && (
|
||||
{step.status === "pending" && step.count === 0 && (
|
||||
<Link
|
||||
to={step.path}
|
||||
className="inline-flex items-center gap-1 mt-2 text-xs font-medium text-brand-500 hover:text-brand-600 group-hover:translate-x-1 transition-transform"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Link } from "react-router";
|
||||
import { ArrowRightIcon } from "../../icons";
|
||||
|
||||
export interface RelationshipData {
|
||||
|
||||
Reference in New Issue
Block a user