aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/Label.js
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/Label.js')
-rw-r--r--webui/src/Label.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/webui/src/Label.js b/webui/src/Label.js
index de2ccd61..fc8a3a22 100644
--- a/webui/src/Label.js
+++ b/webui/src/Label.js
@@ -1,4 +1,5 @@
import React from 'react';
+import gql from 'graphql-tag';
import { makeStyles } from '@material-ui/styles';
import {
getContrastRatio,
@@ -46,4 +47,15 @@ function Label({ label }) {
);
}
+Label.fragment = gql`
+ fragment Label on Label {
+ name
+ color {
+ R
+ G
+ B
+ }
+ }
+`;
+
export default Label;