Show steps in task page (#585)

This commit is contained in:
Kerem Yilmaz
2024-07-11 08:03:18 -07:00
committed by GitHub
parent 1e043445a4
commit 240e591280
9 changed files with 157 additions and 51 deletions

View File

@@ -41,13 +41,9 @@ function StepNavigation({ activeIndex, onActiveIndexChange }: Props) {
return <div>Error: {error?.message}</div>;
}
if (!steps) {
return <div>No steps found</div>;
}
return (
<nav className="flex flex-col gap-4">
{steps.map((step, index) => {
{steps?.map((step, index) => {
const isActive = activeIndex === index;
return (
<div