Download mui-datatables/src/components/TableHeadRow.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/mui-datatables/src/components/TableHeadRow.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/mui-datatables/src/components/TableHeadRow.js
-
curl -L -o TableHeadRow.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/mui-datatables/src/components/TableHeadRow.js
566 Bytes
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import clsx from 'clsx'; | |
| import TableRow from '@mui/material/TableRow'; | |
| import { makeStyles } from 'tss-react/mui'; | |
| const useStyles = makeStyles({ name: 'MUIDataTableHeadRow' })(() => ({ | |
| root: {}, | |
| })); | |
| const TableHeadRow = ({ children }) => { | |
| const { classes } = useStyles(); | |
| return ( | |
| <TableRow | |
| className={clsx({ | |
| [classes.root]: true, | |
| })}> | |
| {children} | |
| </TableRow> | |
| ); | |
| }; | |
| TableHeadRow.propTypes = { | |
| children: PropTypes.node, | |
| }; | |
| export default TableHeadRow; | |