lamassu-server/new-lamassu-admin/src/components/Chip.js
Rafael Taranto b8e0c2175b feat: add graphql support (#349)
* 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
2019-12-24 15:36:41 +01:00

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)