|
|
@ -1,14 +1,15 @@ |
|
|
|
import React from "react"; |
|
|
|
import React from "react"; |
|
|
|
|
|
|
|
import AddToCart1 from "../../AddToCart/AddToCart1"; |
|
|
|
|
|
|
|
|
|
|
|
const ProductTable1 = ({ navTitles, items, addToCart }) => { |
|
|
|
const ProductTable1 = ({ navTitles, items }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<div className="w-full flex justify-center rounded bg-gray-200"> |
|
|
|
<div className="w-full flex justify-center bg-gray-200 rounded"> |
|
|
|
<ul className="w-full flex justify-center"> |
|
|
|
<ul className="w-full flex justify-center"> |
|
|
|
{navTitles.map((item) => ( |
|
|
|
{navTitles.map((item) => ( |
|
|
|
<li |
|
|
|
<li |
|
|
|
key={`NavTitle_${item.id}`} |
|
|
|
key={`NavTitle_${item.id}`} |
|
|
|
className={`p-6 mx-4 cursor-pointer
|
|
|
|
className={`mx-4 p-6 cursor-pointer
|
|
|
|
${ |
|
|
|
${ |
|
|
|
item.isActive |
|
|
|
item.isActive |
|
|
|
? "border-0 border-b-4 border-solid border-blue-500" |
|
|
|
? "border-0 border-b-4 border-solid border-blue-500" |
|
|
@ -23,25 +24,27 @@ const ProductTable1 = ({ navTitles, items, addToCart }) => { |
|
|
|
))} |
|
|
|
))} |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="w-full flex"> |
|
|
|
<div className="w-full flex flex-row"> |
|
|
|
<div className="flex-1"> |
|
|
|
<div className="flex-1"> |
|
|
|
{items.map((e) => |
|
|
|
{items.map((e) => |
|
|
|
e.items.map((item) => ( |
|
|
|
e.items.map((item) => ( |
|
|
|
<ul className="flex w-full flex-1 my-2 items-center"> |
|
|
|
<ul className="w-full flex flex-row items-center flex-1 my-2"> |
|
|
|
<li |
|
|
|
<li |
|
|
|
className="py-4 px-8 min-w-md bg-gray-200 ml-4 text-blueC0" |
|
|
|
className="min-w-md ml-4 py-4 px-8 bg-gray-200 text-blue-600" |
|
|
|
style={{ minWidth: "300px" }} |
|
|
|
style={{ minWidth: "300px" }} |
|
|
|
> |
|
|
|
> |
|
|
|
{item.title} |
|
|
|
{item.title} |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li className="py-4 px-8 min-w-md bg-gray-200 ml-4 w-full"> |
|
|
|
<li className="min-w-md w-full py-4 px-8 bg-gray-200 "> |
|
|
|
{item.description} |
|
|
|
{item.description} |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
)) |
|
|
|
)) |
|
|
|
)} |
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="my-2">{addToCart}</div> |
|
|
|
<div className="my-2 mr-4"> |
|
|
|
|
|
|
|
<AddToCart1 /> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</> |
|
|
|
</> |
|
|
|
); |
|
|
|
); |
|
|
|