* 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
34 lines
742 B
JavaScript
34 lines
742 B
JavaScript
import Chip from '@material-ui/core/Chip'
|
|
import { withStyles } from '@material-ui/core/styles'
|
|
import React, { memo } from 'react'
|
|
|
|
import {
|
|
fontColor,
|
|
inputFontWeight,
|
|
subheaderColor,
|
|
smallestFontSize,
|
|
inputFontFamily
|
|
} from 'src/styling/variables'
|
|
|
|
const styles = theme => ({
|
|
root: {
|
|
backgroundColor: subheaderColor,
|
|
borderRadius: 4,
|
|
margin: theme.spacing(0.5, 0.25),
|
|
height: 18
|
|
},
|
|
label: {
|
|
fontSize: smallestFontSize,
|
|
color: fontColor,
|
|
fontWeight: inputFontWeight,
|
|
fontFamily: inputFontFamily,
|
|
paddingRight: 4,
|
|
paddingLeft: 4
|
|
}
|
|
})
|
|
|
|
const LsChip = memo(({ classes, ...props }) => (
|
|
<Chip size="small" classes={classes} {...props} />
|
|
))
|
|
|
|
export default withStyles(styles)(LsChip)
|