|
|
@ -8,19 +8,23 @@ const ProductTab = ({ tabs }) => { |
|
|
|
<section className="mt-10 flex flex-col w-full"> |
|
|
|
<section className="mt-10 flex flex-col w-full"> |
|
|
|
<div className="rounded-md bg-grayF9"> |
|
|
|
<div className="rounded-md bg-grayF9"> |
|
|
|
<ul className="flex flex-row justify-center gap-16"> |
|
|
|
<ul className="flex flex-row justify-center gap-16"> |
|
|
|
{tabs.map((tab, index) => ( |
|
|
|
{tabs.map((tab, index) => |
|
|
|
<li |
|
|
|
tab.shown ? ( |
|
|
|
className={`text-tiny font-semibold cursor-pointer hover:text-blueC0 py-4 transition-all duration-500 ${ |
|
|
|
<li |
|
|
|
selectedTab?.title === tab?.title |
|
|
|
className={`text-tiny font-semibold cursor-pointer hover:text-blueC0 py-4 transition-all duration-500 ${ |
|
|
|
? "text-blueC0 border-b-4 border-solid border-blueC0" |
|
|
|
selectedTab?.title === tab?.title |
|
|
|
: "border-b-4 border-solid border-transparent" |
|
|
|
? "text-blueC0 border-b-4 border-solid border-blueC0" |
|
|
|
}`}
|
|
|
|
: "border-b-4 border-solid border-transparent" |
|
|
|
onClick={() => setSelectedTab(tab)} |
|
|
|
}`}
|
|
|
|
key={index} |
|
|
|
onClick={() => setSelectedTab(tab)} |
|
|
|
> |
|
|
|
key={index} |
|
|
|
{tab.title} |
|
|
|
> |
|
|
|
</li> |
|
|
|
{tab.title} |
|
|
|
))} |
|
|
|
</li> |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
<></> |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
)} |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className={`rounded w-full flex items-center`}> |
|
|
|
<div className={`rounded w-full flex items-center`}> |
|
|
|