Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1 рядок
3.3 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 Select from 'react-select';\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from \"components/Card/Card.js\";\nimport CardBody from \"components/Card/CardBody.js\";\nimport CardHeader from \"components/Card/CardHeader.js\";\nimport Quote from \"components/Typography/Quote.js\";\nimport Icon from \"@material-ui/core/Icon\";\nimport Button from \"components/CustomButtons/Button.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 selected,\n handleName,\n backend,\n dealers\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"selected\", \"handleName\", \"backend\", \"dealers\"]);\n\n const classes = useStyles();\n const Dealers = dealers.map(data => {\n return __jsx(\"div\", null, __jsx(Grid, {\n style: {\n width: \"350px\",\n padding: \"10px\"\n }\n }, __jsx(Card, null, __jsx(CardHeader, {\n color: \"danger\"\n }, __jsx(\"div\", {\n align: \"center\"\n }, data.name)), __jsx(CardBody, null, __jsx(Quote, {\n text: data.kota_dealer,\n author: data.address\n }), __jsx(Quote, {\n text: data.telp,\n author: data.email\n }), __jsx(\"div\", {\n align: \"center\"\n }, __jsx(Button, {\n color: \"danger\",\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(Card, {\n className: classes.textCenter,\n align: \"center\",\n style: {\n padding: \"5px\"\n }\n }, __jsx(CardBody, null, __jsx(\"div\", {\n align: \"center\",\n style: {\n marginTop: \"-50px\"\n }\n }, __jsx(\"h2\", null, \"Yamaha Dealers\"), __jsx(Select, {\n value: selected ? accessories.filter(i => i.id == selected) : null,\n getOptionLabel: option => `${option.name}`,\n getOptionValue: option => option.id,\n options: dealers,\n isMulti: true,\n instanceId: \"name\",\n placeholder: \"filter by Nama Part\",\n onChange: values => handleName(values)\n }), __jsx(\"br\", null), __jsx(GridContainer, {\n justify: \"center\"\n }, Dealers)))));\n};\n\nexport default DataDealer;","map":null,"metadata":{},"sourceType":"module"}