|
|
@@ -37,6 +37,7 @@ const DataProduct = function ({ backend, detailproduct, ...props }) { |
|
|
|
const Productdetails = detailproduct.map((data) => { |
|
|
|
console.log(data); |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<GridContainer> |
|
|
|
<Grid> |
|
|
|
<div className={classes.section}> |
|
|
@@ -55,27 +56,12 @@ const DataProduct = function ({ backend, detailproduct, ...props }) { |
|
|
|
<hr></hr> |
|
|
|
<p>{data.description}</p> |
|
|
|
</Grid> |
|
|
|
</GridContainer>, |
|
|
|
<GridContainer> |
|
|
|
<GridItem> |
|
|
|
|
|
|
|
</GridItem> |
|
|
|
</GridContainer> |
|
|
|
); |
|
|
|
}) |
|
|
|
return ( |
|
|
|
<Card className={classes.textCenter}> |
|
|
|
<div align="center"> |
|
|
|
<CardHeader color="info">Product Detail</CardHeader> |
|
|
|
</div> |
|
|
|
<CardBody> |
|
|
|
<div> |
|
|
|
{Productdetails[0]} |
|
|
|
</div> |
|
|
|
<GridContainer> |
|
|
|
</GridContainer> |
|
|
|
<GridContainer justify="center"> |
|
|
|
<GridItem> |
|
|
|
<NavPills |
|
|
|
<NavPills |
|
|
|
color="primary" |
|
|
|
align="center" |
|
|
|
tabs={[ |
|
|
|
{ |
|
|
|
tabButton: "Overview", |
|
|
@@ -83,6 +69,7 @@ const DataProduct = function ({ backend, detailproduct, ...props }) { |
|
|
|
tabContent: ( |
|
|
|
<GridContainer justify="center"> |
|
|
|
<GridItem> |
|
|
|
{data.overview} |
|
|
|
</GridItem> |
|
|
|
</GridContainer> |
|
|
|
), |
|
|
@@ -93,6 +80,7 @@ const DataProduct = function ({ backend, detailproduct, ...props }) { |
|
|
|
tabContent: ( |
|
|
|
<GridContainer justify="center"> |
|
|
|
<GridItem> |
|
|
|
{data.specification} |
|
|
|
</GridItem> |
|
|
|
</GridContainer> |
|
|
|
), |
|
|
@@ -103,6 +91,7 @@ const DataProduct = function ({ backend, detailproduct, ...props }) { |
|
|
|
tabContent: ( |
|
|
|
<GridContainer justify="center"> |
|
|
|
<GridItem> |
|
|
|
{data.accessories} |
|
|
|
</GridItem> |
|
|
|
</GridContainer> |
|
|
|
), |
|
|
@@ -113,16 +102,7 @@ const DataProduct = function ({ backend, detailproduct, ...props }) { |
|
|
|
tabContent: ( |
|
|
|
<GridContainer justify="center"> |
|
|
|
<GridItem> |
|
|
|
</GridItem> |
|
|
|
</GridContainer> |
|
|
|
), |
|
|
|
}, |
|
|
|
{ |
|
|
|
tabButton: "Credit Simulation", |
|
|
|
tabIcon: Dashboard, |
|
|
|
tabContent: ( |
|
|
|
<GridContainer justify="center"> |
|
|
|
<GridItem> |
|
|
|
<img className={navImageClasses} width="300px" height="400px" alt="First slide" src={`${backend}${data.img[0]["url"]}`} /> |
|
|
|
</GridItem> |
|
|
|
</GridContainer> |
|
|
|
), |
|
|
@@ -131,6 +111,18 @@ const DataProduct = function ({ backend, detailproduct, ...props }) { |
|
|
|
/> |
|
|
|
</GridItem> |
|
|
|
</GridContainer> |
|
|
|
</div> |
|
|
|
); |
|
|
|
}) |
|
|
|
return ( |
|
|
|
<Card className={classes.textCenter}> |
|
|
|
<div align="center"> |
|
|
|
<CardHeader color="info">Product Detail</CardHeader> |
|
|
|
</div> |
|
|
|
<CardBody> |
|
|
|
<div> |
|
|
|
{Productdetails[0]} |
|
|
|
</div> |
|
|
|
</CardBody> |
|
|
|
<CardFooter className={classes.textMuted} textAlign="center"> |
|
|
|
© 2020 , All Right Reserved by @Thamrin Brother Company |
|
|
|