No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

1 línea
3.7 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 from 'react';\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport classNames from \"classnames\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/profilePage.js\";\nimport Grid from '@material-ui/core/Grid';\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport GridItem from \"components/Grid/GridItem.js\";\nimport Card from \"components/Card/Card.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Paginations from \"components/Pagination/Pagination.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport profile from \"assets/img/faces/christian.jpg\";\nimport QR from \"assets/img/sales/qr_steven.jpg\";\nimport Email from \"@material-ui/icons/Email\";\nimport Phone from \"@material-ui/icons/Phone\";\nimport Wa from \"@material-ui/icons/WhatsApp\";\nconst useStyles = makeStyles(styles);\n\nconst DataLatestNews = function (_ref) {\n let {\n backend,\n sales\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"sales\"]);\n\n const classes = useStyles();\n const imageClasses = classNames(classes.imgRaised, classes.imgRoundedCircle, classes.imgFluid);\n const navImageClasses = classNames(classes.imgRounded, classes.imgGallery);\n const DataSales = sales.map(data => {\n return __jsx(\"div\", {\n className: classes.container\n }, __jsx(GridContainer, {\n justify: \"center\"\n }, __jsx(GridItem, {\n xs: 12,\n sm: 12,\n md: 6\n }, __jsx(\"div\", {\n className: classes.profile\n }, __jsx(\"div\", null, __jsx(\"img\", {\n src: `${backend}${data.foto[\"url\"]}`,\n alt: \"...\",\n className: imageClasses\n })), __jsx(\"div\", {\n className: classes.name\n }, __jsx(\"div\", null, __jsx(\"h1\", null, __jsx(\"strong\", null, data.name))), __jsx(\"div\", null, __jsx(\"h4\", null, __jsx(\"strong\", null, data.job_title))), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"h5\", null, __jsx(\"strong\", null, data.company)))), __jsx(Button, {\n color: \"primary\",\n round: true,\n href: `tel:${data.telp}`,\n target: \"_blank\"\n }, __jsx(Phone, {\n className: classes.icons\n }), \" Call Us\"), __jsx(Button, {\n color: \"primary\",\n round: true,\n href: `mailto:${data.email}`,\n target: \"_blank\"\n }, __jsx(Email, {\n className: classes.icons\n }), \" Email Us\"), __jsx(Button, {\n color: \"primary\",\n round: true,\n href: `https://wa.me/62${data.wa}`,\n target: \"_blank\"\n }, __jsx(Wa, {\n className: classes.icons\n }), \" Message Us\")))), __jsx(\"br\", null), __jsx(\"br\", null));\n });\n return __jsx(\"div\", null, DataSales);\n};\n\nexport default DataLatestNews;","map":null,"metadata":{},"sourceType":"module"}