aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/Label.js
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-15 21:49:31 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-15 21:49:31 +0200
commitcf9e83e74dc5f91b0e13fbdb79848925e68809a3 (patch)
treee3b832cf0f5f6e4f4756f4e757babda22d9091e0 /webui/src/Label.js
parent1984d4343db770fc2c8e251a81f1ab997a4c4d5e (diff)
downloadgit-bug-cf9e83e74dc5f91b0e13fbdb79848925e68809a3.tar.gz
webui: display label changes in the timeline + cleaning evrywhere
Diffstat (limited to 'webui/src/Label.js')
-rw-r--r--webui/src/Label.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/webui/src/Label.js b/webui/src/Label.js
new file mode 100644
index 00000000..93a9a358
--- /dev/null
+++ b/webui/src/Label.js
@@ -0,0 +1,15 @@
+import React from 'react'
+import { withStyles } from '@material-ui/core/styles'
+
+const styles = theme => ({
+ label: {
+ padding: '0 4px',
+ margin: '0 1px',
+ backgroundColor: '#da9898',
+ borderRadius: '3px'
+ },
+})
+
+const Label = ({label, classes}) => <span className={classes.label}>{label}</span>
+
+export default withStyles(styles)(Label)