* fix: eslint warnings * refactor: use ramda + sanctuary instead of lodash * refactor: use prettier-standard for formatting * feat: enable security * feat: add graphql * chore: remove trailing commas from linter * docs: new scripts on react and new-admin-server * feat: handle authentication on graphql * fix: perf improvement to date picker * chore: add insecure-dev script to run servers
23 lines
534 B
JavaScript
23 lines
534 B
JavaScript
import { makeStyles } from '@material-ui/core/styles'
|
|
import classnames from 'classnames'
|
|
import React, { memo } from 'react'
|
|
|
|
const useStyles = makeStyles({
|
|
table: {
|
|
// backgroundColor: tableHeaderColor,
|
|
tableLayout: 'fixed',
|
|
borderCollapse: 'separate',
|
|
borderSpacing: '0 0'
|
|
}
|
|
})
|
|
|
|
const Table = memo(({ className, children, ...props }) => {
|
|
const classes = useStyles()
|
|
return (
|
|
<table {...props} className={classnames(classes.table, className)}>
|
|
{children}
|
|
</table>
|
|
)
|
|
})
|
|
|
|
export default Table
|