Download material-table/src/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 741 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/material-table/src/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/material-table/src/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/material-table/src/index.js
741 Bytes
| import "./utils/polyfill"; | |
| import React from "react"; | |
| import { defaultProps } from "./default-props"; | |
| import { propTypes } from "./prop-types"; | |
| import MaterialTable from "./material-table"; | |
| import { withStyles } from "@mui/styles"; | |
| MaterialTable.defaultProps = defaultProps; | |
| MaterialTable.propTypes = propTypes; | |
| export { MaterialTable as MTable }; | |
| const styles = (theme) => ({ | |
| paginationRoot: { | |
| width: "100%", | |
| }, | |
| paginationToolbar: { | |
| padding: 0, | |
| width: "100%", | |
| }, | |
| paginationCaption: { | |
| display: "none", | |
| }, | |
| paginationSelectRoot: { | |
| margin: 0, | |
| }, | |
| }); | |
| export default withStyles(styles, { withTheme: true })((props) => ( | |
| <MaterialTable {...props} ref={props.tableRef} /> | |
| )); | |
| export * from "./components"; | |