diff options
Diffstat (limited to 'webui/src/Label.js')
-rw-r--r-- | webui/src/Label.js | 12 |
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; |