Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1 строка
4.9 KiB

  1. {"ast":null,"code":"var __jsx = React.createElement;\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport React, { useState, useEffect } from \"react\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport ReactHtmlParser from \"react-html-parser\";\nimport Dashboard from \"@material-ui/icons/Dashboard\";\nimport Icon from \"@material-ui/core/Icon\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport GridItem from \"components/Grid/GridItem.js\";\nimport NavPills from \"components/NavPills/NavPills.js\";\nimport Card from \"components/Card/Card.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport CardFooter from \"components/Card/CardFooter.js\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/profilePage.js\";\nimport Carousel from \"react-slick\";\nconst useStyles = makeStyles(styles);\n\nconst DetailDataYamalube = function (_ref) {\n let {\n backend,\n detailyamalube\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"detailyamalube\"]);\n\n const classes = useStyles();\n const rest = Object.assign({}, props);\n const imageClasses = classNames(classes.imgRaised, classes.imgRoundedCircle, classes.imgFluid);\n const settings = {\n dots: true,\n infinite: true,\n speed: 500,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoplay: true,\n time: 5\n };\n const navImageClasses = classNames(classes.imgRounded, classes.imgGallery);\n const Yamalubedetails = detailyamalube.map(data => {\n return __jsx(\"div\", null, __jsx(GridContainer, null, __jsx(Grid, {\n fluid: true,\n xs: 5\n }, __jsx(\"div\", {\n className: classes.section,\n id: \"notifications\"\n }, __jsx(\"div\", {\n className: classes.section\n }, __jsx(\"div\", {\n className: classes.container\n }, __jsx(GridContainer, null, __jsx(GridItem, {\n className: classes.marginAuto\n }, __jsx(Card, {\n carousel: true\n }, __jsx(Carousel, settings, __jsx(\"img\", {\n className: navImageClasses,\n width: \"300px\",\n alt: \"First slide\",\n src: `${backend}${data.img[\"url\"]}`\n }))))))))), __jsx(Grid, {\n xs: 7,\n style: {\n padding: \"40px\",\n marginTop: \"-30px\"\n }\n }, __jsx(\"h3\", null, data.name), __jsx(\"h3\", null, \"Rp.\", data.price), __jsx(\"hr\", null), __jsx(\"ul\", null, __jsx(\"li\", null, __jsx(\"h4\", null, \"Stock : \", data.stock)), __jsx(\"li\", null, __jsx(\"h4\", null, \"Part Code : \", data.part_code))))), __jsx(GridContainer, null, __jsx(Grid, {\n className: classes.marginAuto,\n style: {\n padding: \"11px\"\n }\n }, __jsx(\"img\", {\n className: navImageClasses,\n src: `${backend}${data.img[\"url\"]}`,\n height: \"165px\",\n width: \"200px\"\n })), __jsx(Grid, {\n className: classes.marginAuto,\n style: {\n padding: \"11px\"\n }\n }, __jsx(\"img\", {\n className: navImageClasses,\n src: `${backend}${data.img[\"url\"]}`,\n height: \"165px\",\n width: \"200px\"\n })), __jsx(Grid, {\n className: classes.marginAuto,\n style: {\n padding: \"11px\"\n }\n }, __jsx(\"img\", {\n className: navImageClasses,\n src: `${backend}${data.img[\"url\"]}`,\n height: \"165px\",\n width: \"200px\"\n }))), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"hr\", null), __jsx(\"h2\", null, \"Deskripsi\")), __jsx(\"div\", {\n align: \"justify\"\n }, __jsx(\"p\", null, ReactHtmlParser(data.description))));\n });\n return __jsx(Card, {\n className: classes.textCenter\n }, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(CardHeader, {\n color: \"info\"\n }, \"Product Detail\")), __jsx(CardBody, null, __jsx(\"div\", null, Yamalubedetails)), __jsx(CardFooter, {\n className: classes.textMuted,\n textAlign: \"center\"\n }, \"\\xA9 2020 , All Right Reserved by @Thamrin Brother Company\"));\n};\n\nexport default DetailDataYamalube;","map":null,"metadata":{},"sourceType":"module"}