code review

This commit is contained in:
Daria Golova
2022-07-18 15:11:20 +03:00
parent 5b20d71a0c
commit 774955f131
20 changed files with 96 additions and 98 deletions

View File

@@ -0,0 +1,39 @@
import React from "react";
import ValidationSeasonItem from "./ValidationSeasonItem";
import ValidationUsersImg from "./ValidationUsersImg";
function ValidateRoadMap({ season }) {
return (
<article className="pt-3">
<div className="xl:flex">
<div className="w-32 shrink-0">
<h2 className="text-xl leading-snug font-bold text-slate-800 xl:leading-7 mb-4 xl:mb-0">{''}</h2>
</div>
<div className="grow pb-6">
<header>
<div className="flex flex-nowrap items-center space-x-2 mb-6">
{/* Avatars */}
<div className="flex shrink-0 -space-x-3 -ml-px">
{season.users_images.map(pic => {
return <ValidationUsersImg image={pic} key={pic.image}/>
})}
</div>
<div className="text-slate-400">·</div>
</div>
</header>
{/* List */}
<ul className="-my-2">
{/* List item(s) */}
{season.transaction.map((item, index) => {
return <ValidationSeasonItem key={item.label} length={season.transaction.length} item={item} index={index}/>
})}
</ul>
</div>
</div>
</article>
)
}
export default ValidateRoadMap;