Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

1 rad
3.6 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, { Component } from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Button from \"components/CustomButtons/Button.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from \"components/Card/Card.js\";\nimport SnackbarContent from \"components/Snackbar/SnackbarContent.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport imagesStyles from \"assets/jss/nextjs-material-kit/imagesStyles.js\";\nimport { cardTitle } from \"assets/jss/nextjs-material-kit.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nconst useStyles = makeStyles(styles);\n\nconst DataDealer = function (_ref) {\n let {\n backend,\n dealers\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"dealers\"]);\n\n const classes = useStyles();\n const Dealer = dealers.map(data => {\n return __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"30px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"img\", {\n style: {\n height: \"180px\",\n width: \"100%\",\n display: \"block\"\n },\n className: classes.imgCardTop,\n src: `${backend}${data.img[\"url\"]}`\n }), __jsx(CardBody, null, __jsx(\"p\", null, data.name), __jsx(\"p\", null, data.kota_dealer), __jsx(\"p\", null, data.telp), __jsx(\"p\", null, data.address), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: data.location,\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"room\"), \"View Location\")))));\n });\n return __jsx(\"div\", null, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"div\", {\n style: {\n padding: \"20px\",\n marginTop: \"50px\"\n },\n align: \"center\",\n className: classes.section,\n id: \"notifications\"\n }, __jsx(SnackbarContent, {\n align: \"center\",\n color: \"info\",\n message: \"Thamrin Brothers - Yamaha Dealer\"\n }))), __jsx(Grid, {\n container: true,\n style: {\n padding: \"40px\",\n marginTop: \"-50px\"\n },\n justify: \"center\"\n }, Dealer, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"info\",\n round: true,\n href: \"/yamaha/dealers\",\n target: \"_blank\"\n }, __jsx(Icon, {\n className: classes.icons\n }, \"open_in_new\"), \"View More Dealers\"))));\n};\n\nexport default DataDealer;","map":null,"metadata":{},"sourceType":"module"}