You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
2.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 from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport GridContainer from \"components/Grid/GridContainer.js\";\nimport Grid from '@material-ui/core/Grid';\nimport Paper from '@material-ui/core/Paper';\nimport Card from \"components/Card/Card.js\";\nimport styles from \"assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js\";\nimport SnackbarContent from \"components/Snackbar/SnackbarContent.js\";\nconst useStyles = makeStyles(styles);\n\nconst DataService = function (_ref) {\n let {\n backend,\n service\n } = _ref,\n props = _objectWithoutProperties(_ref, [\"backend\", \"service\"]);\n\n const classes = useStyles();\n const services = service.map((data, index) => __jsx(Grid, {\n align: \"center\",\n style: {\n padding: \"40px\",\n marginTop: \"-50px\"\n }\n }, __jsx(Card, {\n style: {\n width: \"20rem\"\n }\n }, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"img\", {\n style: {\n height: \"180px\",\n width: \"300px\",\n display: \"block\"\n },\n className: classes.imgCardTop,\n src: `${backend}${data.img[0][\"url\"]}`\n })))));\n return __jsx(\"div\", {\n className: classes.section,\n id: \"notifications\"\n }, __jsx(\"div\", {\n align: \"center\"\n }, __jsx(\"div\", {\n align: \"center\",\n className: classes.section,\n id: \"notifications\"\n }, __jsx(SnackbarContent, {\n message: __jsx(\"h4\", null, \"Our Service\"),\n align: \"center\",\n color: \"danger\"\n }))), __jsx(\"div\", null, __jsx(GridContainer, {\n style: {\n padding: \"40px\"\n },\n justify: \"center\"\n }, services)));\n};\n\nexport default DataService;","map":null,"metadata":{},"sourceType":"module"}