|
|
|
@ -51,32 +51,34 @@ const AccordionDesign1 = ({ items, vod }) => { |
|
|
|
|
{/* child */} |
|
|
|
|
{activeAccordion === item && |
|
|
|
|
item.subItems.map((subItem, i) => ( |
|
|
|
|
<div className="flex flex-row items-center justify-between p-3 border-b-2 border-surfaceBorder cursor-pointer "> |
|
|
|
|
<div className="flex flex-row items-center justify-between p-3 border-b-2 border-surfaceBorder cursor-pointer"> |
|
|
|
|
<div className="flex flex-row items-center"> |
|
|
|
|
{vod === !true && ( |
|
|
|
|
<img |
|
|
|
|
src="images/accordionGroup2725.svg" |
|
|
|
|
className="w-4" |
|
|
|
|
className="w-3" |
|
|
|
|
alt="line" |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
<span className={`text-sm ${vod === true ? "mr-0" : "mr-3"}`}> |
|
|
|
|
1 |
|
|
|
|
{i + 1} |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<div className="w-0.5 h-6 mx-3 bg-surfaceBorder"></div> |
|
|
|
|
<div className="w-0.5 h-5 mx-3 bg-surfaceBorder"></div> |
|
|
|
|
<p className="text-sm flex-1">{subItem.name}</p> |
|
|
|
|
<div className="flex flex-row items-center justify-end gap-x-3 flex-1"> |
|
|
|
|
{vod ? ( |
|
|
|
|
<> |
|
|
|
|
<p className="text-xs"> |
|
|
|
|
دقیقه: |
|
|
|
|
<span>{item.min}</span> |
|
|
|
|
</p> |
|
|
|
|
<Button |
|
|
|
|
className="px-2 py-1 text-primary text-sm border border-surfaceBorder rounded mr-4" |
|
|
|
|
text={"پخش"} |
|
|
|
|
/> |
|
|
|
|
<div className="flex flex-row items-center ml-7"> |
|
|
|
|
<p className="text-xs"> |
|
|
|
|
دقیقه: |
|
|
|
|
<span>{item.min}</span> |
|
|
|
|
</p> |
|
|
|
|
<Button |
|
|
|
|
className="px-2 py-1 text-primary text-sm border border-surfaceBorder rounded mr-4" |
|
|
|
|
text={"پخش"} |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
</> |
|
|
|
|
) : ( |
|
|
|
|
<> |
|
|
|
@ -105,6 +107,7 @@ export default AccordionDesign1; |
|
|
|
|
|
|
|
|
|
AccordionDesign1.defaultProps = { |
|
|
|
|
vod: true, |
|
|
|
|
|
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
title: |
|
|
|
|